@@ -376,7 +376,7 @@ class Textures extends DataMap {
if ( image.image !== undefined ) image = image.image;
- if ( image instanceof HTMLVideoElement ) {
+ if ( ( typeof HTMLVideoElement !== 'undefined' ) && ( image instanceof HTMLVideoElement ) ) {
target.width = image.videoWidth || 1;
target.height = image.videoHeight || 1;
@@ -83,7 +83,7 @@ class Source {
const data = this.data;
- if ( data instanceof HTMLVideoElement ) {
+ if ( ( typeof HTMLVideoElement !== 'undefined' ) && ( data instanceof HTMLVideoElement ) ) {
target.set( data.videoWidth, data.videoHeight, 0 );