Merge pull request #3226 from yougotwill/fix/no-ref/qr_code_recovery_macos

Fix loading the Recovery Password QR Code on macOS with rosetta
pull/3215/head
Audric Ackermann 7 months ago committed by GitHub
commit 050eed0eb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -58,12 +58,11 @@ export const convertIconToImageURL = async (
/> />
); );
// wait for it to render // wait for it to render
await sleepFor(100); await sleepFor(200);
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;
reactRoot?.unmount(); reactRoot?.unmount();
root?.removeChild(divElement); root?.removeChild(divElement);

Loading…
Cancel
Save