Prechádzať zdrojové kódy

Merge pull request #194 from sukolsak/fix-smaa

Fix HTMLImageElement check for SMAA
Alexander Rose 3 rokov pred
rodič
commit
ffdcf798e0
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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;
         }