mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
fixed a bug: in case if the environment does not support HTMLVideoElement.
This commit is contained in:
parent
9507ec7591
commit
87b54d2f4f
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ var TextureSource = new Class({
|
|||
* @type {boolean}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.isCanvas = (window.hasOwnProperty('HTMLCanvasElement') && source instanceof HTMLCanvasElement);
|
||||
this.isCanvas = source instanceof HTMLCanvasElement;
|
||||
|
||||
/**
|
||||
* Is the source image a Video Element?
|
||||
|
|
Loading…
Reference in a new issue