We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f74409 commit 0babb8dCopy full SHA for 0babb8d
1 file changed
Picviewer CE+/Picviewer CE+.user.js
@@ -16382,8 +16382,10 @@ ImgOps | https://imgops.com/#b#`;
16382
var canvasImgs=Array.from(document.body.querySelectorAll('canvas'))
16383
.reduce((total, canvas) => {
16384
if (canvas.clientHeight != 0) {
16385
- canvas.src = canvas.toDataURL("image/png");
16386
- total.push(canvas);
+ try {
+ canvas.src = canvas.toDataURL("image/png");
16387
+ total.push(canvas);
16388
+ } catch(e) {}
16389
}
16390
return total;
16391
}, []);
0 commit comments