diff --git a/src/system/Device.js b/src/system/Device.js index 3eb63d327..729fc108f 100644 --- a/src/system/Device.js +++ b/src/system/Device.js @@ -37,6 +37,12 @@ Phaser.Device = function (game) { * @default */ this.cocoonJS = false; + + /** + * @property {boolean} cordova - Is the game running under Apache Cordova? + * @default + */ + this.cordova = false; /** * @property {boolean} ejecta - Is the game running under Ejecta? @@ -620,6 +626,11 @@ Phaser.Device.prototype = { { this.webApp = true; } + + if (typeof window.cordova !== "undefined") + { + this.cordova = true; + } if (navigator['isCocoonJS']) {