Skip to content

Commit 87e6d9e

Browse files
authored
Update Three.js
Fix runtime error in node environments.
1 parent 583ea73 commit 87e6d9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Three.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) {
165165

166166
}
167167

168-
if ( window ) {
168+
if ( typeof window !== 'undefined' ) {
169169

170170
if ( window.__THREE__ ) {
171171

0 commit comments

Comments
 (0)