Skip to content

Commit

Permalink
remove placeholder image after copying
Browse files Browse the repository at this point in the history
Amy Chen authored and Amy Chen committed Nov 6, 2023
1 parent 61f7d2e commit 016a18f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/helpers/utility.js
Original file line number Diff line number Diff line change
@@ -298,6 +298,9 @@ export function copySVGImage(
if (height && typeof svgElement.setAttribute) {
svgElement.setAttribute("height", "100%");
}
setTimeout(() => {
document.body.removeChild(img);
}, 0);
resolve(blob);
});
}),

0 comments on commit 016a18f

Please sign in to comment.