Skip to content

Commit

Permalink
Merge pull request #3226 from yougotwill/fix/no-ref/qr_code_recovery_…
Browse files Browse the repository at this point in the history
…macos

Fix loading the Recovery Password QR Code on macOS with rosetta
  • Loading branch information
Bilb authored Sep 29, 2024
2 parents e0d971b + d472d60 commit 050eed0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ts/hooks/useIconToImageURL.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,11 @@ export const convertIconToImageURL = async (
/>
);
// wait for it to render
await sleepFor(100);
await sleepFor(200);

const svg = root?.querySelector(`#icon-to-image-url svg`);
svg?.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
const svgString = svg?.outerHTML;

reactRoot?.unmount();
root?.removeChild(divElement);

Expand Down

0 comments on commit 050eed0

Please sign in to comment.