瀏覽代碼

Update Three.js

Fix runtime error in node environments.
Michael Herzog 4 年之前
父節點
當前提交
87e6d9ee72
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Three.js

+ 1 - 1
src/Three.js

@@ -165,7 +165,7 @@ if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) {
 
 }
 
-if ( window ) {
+if ( typeof window !== 'undefined' ) {
 
 	if ( window.__THREE__ ) {