Parcourir la source

fix HTMLImageElement check for SMAA

Sukolsak Sakshuwong il y a 3 ans
Parent
commit
397e1235e7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;
         }