Procházet zdrojové kódy

Merge pull request #194 from sukolsak/fix-smaa

Fix HTMLImageElement check for SMAA
Alexander Rose před 3 roky
rodič
revize
ffdcf798e0
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;
         }