We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2746d6 commit db37333Copy full SHA for db37333
1 file changed
src/display/canvas.js
@@ -701,7 +701,7 @@ class CanvasGraphics {
701
// foreground: '#D8DEE9',
702
// };
703
704
- if (window.theme && !this.ctx.skipBlender) {
+ if (typeof window !== 'undefined' && window.theme && !this.ctx.skipBlender) {
705
this.blender = new Blender(this.ctx, window.theme);
706
}
707
// For pdfs that use blend modes we have to clear the canvas else certain
0 commit comments