Skip to content

Commit

Permalink
fix: test with 200ms
Browse files Browse the repository at this point in the history
  • Loading branch information
yougotwill committed Sep 26, 2024
1 parent 549a1ea commit d472d60
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(500);
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;
window.log.debug(`WIP: [convertIconToImageUrl] svgString: ${svgString}`);
reactRoot?.unmount();
root?.removeChild(divElement);

Expand Down

0 comments on commit d472d60

Please sign in to comment.