Ver Fonte

Update Three.js

Fix runtime error in node environments.
Michael Herzog há 4 anos atrás
pai
commit
87e6d9ee72
1 ficheiros alterados com 1 adições e 1 exclusões
  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__ ) {