fix: test if rosetta emulation needs more time to mount react to create a qr code

pull/3226/head
yougotwill 7 months ago
parent a92dbfe59a
commit 549a1ea6d4

@ -58,12 +58,12 @@ export const convertIconToImageURL = async (
/> />
); );
// wait for it to render // wait for it to render
await sleepFor(100); await sleepFor(500);
const svg = root?.querySelector(`#icon-to-image-url svg`); const svg = root?.querySelector(`#icon-to-image-url svg`);
svg?.setAttribute('xmlns', 'http://www.w3.org/2000/svg'); svg?.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
const svgString = svg?.outerHTML; const svgString = svg?.outerHTML;
window.log.debug(`WIP: [convertIconToImageUrl] svgString: ${svgString}`);
reactRoot?.unmount(); reactRoot?.unmount();
root?.removeChild(divElement); root?.removeChild(divElement);

Loading…
Cancel
Save