Skip to content

Commit

Permalink
Merge pull request #155 from tkskto/fix/capture
Browse files Browse the repository at this point in the history
fix: remove SVG at capture.
  • Loading branch information
tkskto committed Feb 20, 2022
2 parents 68b094b + 6d17a78 commit 5c1dfca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/ScreenCapture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const makeImage = (url: string): Promise<HTMLImageElement> => (
export const makeSVG = async (app: HTMLDivElement, width: number, height: number): Promise<string> => {
const clone = app.cloneNode(true) as HTMLDivElement;

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

willRemoveElements.forEach((element) => {
if (element.parentElement) {
Expand Down

0 comments on commit 5c1dfca

Please sign in to comment.