mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
Phaser games should now work again from the CocoonJS Launcher.
This commit is contained in:
parent
7c9dfefc8f
commit
da031d8bbb
2 changed files with 3 additions and 1 deletions
|
@ -159,6 +159,7 @@ Version 2.2.0 - "Bethal" - in development
|
|||
* P2.BodyDebug circles were drawing at half widths (thanks @enriqueto #1288)
|
||||
* FrameData.clone fixed when cloning data using frame names rather than indexes (thanks pjbaron)
|
||||
* Lots of the Cache getters (such as `Cache.getbitmapData`) would return `undefined` if the asset couldn't be found. They now all consistently return `null` for missing entries (thanks @Matoking #1305)
|
||||
* Phaser games should now work again from the CocoonJS Launcher.
|
||||
|
||||
|
||||
For details about changes made in previous versions of Phaser see the full Change Log at https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md
|
||||
|
|
|
@ -376,8 +376,9 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
|
|||
{
|
||||
window.setTimeout(this._onBoot, 0);
|
||||
}
|
||||
else if(typeof window.cordova !== "undefined")
|
||||
else if (typeof window.cordova !== "undefined" && !navigator['isCocoonJS'])
|
||||
{
|
||||
// Cordova, but NOT Cocoon?
|
||||
document.addEventListener('deviceready', this._onBoot, false);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue