We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68b094b commit 6d17a78Copy full SHA for 6d17a78
src/client/ScreenCapture.ts
@@ -25,7 +25,7 @@ export const makeImage = (url: string): Promise<HTMLImageElement> => (
25
export const makeSVG = async (app: HTMLDivElement, width: number, height: number): Promise<string> => {
26
const clone = app.cloneNode(true) as HTMLDivElement;
27
28
- const willRemoveElements = clone.querySelectorAll<HTMLImageElement>('img, script');
+ const willRemoveElements = clone.querySelectorAll<HTMLImageElement>('img, script, svg');
29
30
willRemoveElements.forEach((element) => {
31
if (element.parentElement) {
0 commit comments