浏览代码

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 年之前
父节点
当前提交
059c8daab9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;