Skip to content

Commit 5c1dfca

Browse files
authored
Merge pull request #155 from tkskto/fix/capture
fix: remove SVG at capture.
2 parents 68b094b + 6d17a78 commit 5c1dfca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/ScreenCapture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const makeImage = (url: string): Promise<HTMLImageElement> => (
2525
export const makeSVG = async (app: HTMLDivElement, width: number, height: number): Promise<string> => {
2626
const clone = app.cloneNode(true) as HTMLDivElement;
2727

28-
const willRemoveElements = clone.querySelectorAll<HTMLImageElement>('img, script');
28+
const willRemoveElements = clone.querySelectorAll<HTMLImageElement>('img, script, svg');
2929

3030
willRemoveElements.forEach((element) => {
3131
if (element.parentElement) {

0 commit comments

Comments
 (0)