The Wayback Machine - https://webcf.waybackmachine.org/web/20220312041647/https://github.com/mrdoob/three.js/commit/2a853ac822aa396f8cafedb30b6693b9a87cd848
Skip to content
Permalink
Browse files
Three.js: Fixed __THREE__ code.
  • Loading branch information
mrdoob committed on Jan 22, 2021
1 parent 952a482 commit 2a853ac822aa396f8cafedb30b6693b9a87cd848
Showing with 8 additions and 5 deletions.
  1. +8 −5 src/Three.js
@@ -165,13 +165,16 @@ if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) {

}

if ( typeof __THREE__ !== undefined ) {
if ( window ) {

console.warn( 'WARNING: Multiple instances of Three.js being imported.' );
if ( window.__THREE__ ) {

} else {
console.warn( 'WARNING: Multiple instances of Three.js being imported.' );

// eslint-disable-next-line no-undef
__THREE__ = REVISION;
} else {

window.__THREE__ = REVISION;

}

}

0 comments on commit 2a853ac

Please sign in to comment.