Browse Source

Fix lgtm.com alert: can't compare bool to string (operator precedence)

Details:
https://lgtm.com/projects/g/mrdoob/three.js/snapshot/dist-10110011-1494681683902/files/examples/js/loaders/WWOBJLoader2.js#V32
Bas van Schaik 8 years ago
parent
commit
059c8daab9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/WWOBJLoader2.js

+ 1 - 1
examples/js/loaders/WWOBJLoader2.js

@@ -29,7 +29,7 @@ THREE.OBJLoader2.WWOBJLoader2 = (function () {
 		// check worker support first
 		if ( window.Worker === undefined ) throw "This browser does not support web workers!";
 		if ( window.Blob === undefined  ) throw "This browser does not support Blob!";
-		if ( ! typeof window.URL.createObjectURL === 'function'  ) throw "This browser does not support Object creation from URL!";
+		if ( typeof window.URL.createObjectURL !== 'function'  ) throw "This browser does not support Object creation from URL!";
 
 		this.instanceNo = 0;
 		this.worker = null;