|
@@ -891,7 +891,7 @@ function WebGLRenderer( parameters = {} ) {
|
|
|
const animation = new WebGLAnimation();
|
|
|
animation.setAnimationLoop( onAnimationFrame );
|
|
|
|
|
|
- if ( typeof window !== 'undefined' ) animation.setContext( window );
|
|
|
+ if ( typeof self !== 'undefined' ) animation.setContext( self );
|
|
|
|
|
|
this.setAnimationLoop = function ( callback ) {
|
|
|
|