Skip to content

Commit

Permalink
Update ScreenCapture.js
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Jul 3, 2024
1 parent 2a539b1 commit 03e072f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/ScreenCapture.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,15 +371,7 @@ const deepClone = (host) => {

if (node instanceof HTMLCanvasElement) {
try {
clone.setAttribute("bb-canvas-data", node.toDataURL());
} catch (exp) {
console.warn("Gleap: Failed to clone canvas data.", exp);
}
}

if (node instanceof HTMLCanvasElement) {
try {
clone.setAttribute("bb-canvas-data", node.toDataURL());
clone.setAttribute("bb-canvas-data", resizeImage(node.toDataURL(), 500, 500));
} catch (exp) {
console.warn("Gleap: Failed to clone canvas data.", exp);
}
Expand Down

0 comments on commit 03e072f

Please sign in to comment.