mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 01:38:23 +00:00
If in debug mode, add to window
This commit is contained in:
parent
b374ce6b1c
commit
1657f9e843
1 changed files with 5 additions and 0 deletions
|
@ -381,6 +381,11 @@ var Game = new Class({
|
|||
this.textures.once(TextureEvents.READY, this.texturesReady, this);
|
||||
|
||||
this.events.emit(Events.BOOT);
|
||||
|
||||
if (typeof WEBGL_DEBUG && window)
|
||||
{
|
||||
window.PHASER_GAME = this;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue