We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 875d092 commit f396dcbCopy full SHA for f396dcb
src/renderers/common/Textures.js
@@ -376,7 +376,7 @@ class Textures extends DataMap {
376
377
if ( image.image !== undefined ) image = image.image;
378
379
- if ( image instanceof HTMLVideoElement ) {
+ if ( ( typeof HTMLVideoElement !== 'undefined' ) && ( image instanceof HTMLVideoElement ) ) {
380
381
target.width = image.videoWidth || 1;
382
target.height = image.videoHeight || 1;
src/textures/Source.js
@@ -83,7 +83,7 @@ class Source {
83
84
const data = this.data;
85
86
- if ( data instanceof HTMLVideoElement ) {
+ if ( ( typeof HTMLVideoElement !== 'undefined' ) && ( data instanceof HTMLVideoElement ) ) {
87
88
target.set( data.videoWidth, data.videoHeight, 0 );
89
0 commit comments