Skip to content

Commit 03e072f

Browse files
committed
Update ScreenCapture.js
1 parent 2a539b1 commit 03e072f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/ScreenCapture.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -371,15 +371,7 @@ const deepClone = (host) => {
371371

372372
if (node instanceof HTMLCanvasElement) {
373373
try {
374-
clone.setAttribute("bb-canvas-data", node.toDataURL());
375-
} catch (exp) {
376-
console.warn("Gleap: Failed to clone canvas data.", exp);
377-
}
378-
}
379-
380-
if (node instanceof HTMLCanvasElement) {
381-
try {
382-
clone.setAttribute("bb-canvas-data", node.toDataURL());
374+
clone.setAttribute("bb-canvas-data", resizeImage(node.toDataURL(), 500, 500));
383375
} catch (exp) {
384376
console.warn("Gleap: Failed to clone canvas data.", exp);
385377
}

0 commit comments

Comments
 (0)