We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 261fe8b commit 7cb304bCopy full SHA for 7cb304b
1 file changed
src/display/canvas.js
@@ -718,7 +718,7 @@ class CanvasGraphics {
718
// foreground: '#D8DEE9',
719
// };
720
721
- if (window.theme && !this.ctx.skipBlender) {
+ if (typeof window !== 'undefined' && window.theme && !this.ctx.skipBlender) {
722
this.blender = new Blender(this.ctx, window.theme);
723
}
724
// For pdfs that use blend modes we have to clear the canvas else certain
0 commit comments