Procházet zdrojové kódy

fix HTMLImageElement check for SMAA

Sukolsak Sakshuwong před 3 roky
rodič
revize
397e1235e7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
         }