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.
2 parents 68b094b + 6d17a78 commit 5c1dfcaCopy full SHA for 5c1dfca
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