Преглед изворни кода

fix HTMLImageElement check for SMAA

Sukolsak Sakshuwong пре 3 година
родитељ
комит
397e1235e7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/mol-canvas3d/passes/smaa.ts

+ 1 - 1
src/mol-canvas3d/passes/smaa.ts

@@ -44,7 +44,7 @@ export class SmaaPass {
     }
 
     constructor(private webgl: WebGLContext, input: Texture) {
-        if (typeof HTMLImageElement === undefined) {
+        if (typeof HTMLImageElement === 'undefined') {
             if (isDebugMode) console.log(`Missing "HTMLImageElement" required for "SMAA"`);
             return;
         }