mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
Merge branch 'master' of https://github.com/photonstorm/phaser
This commit is contained in:
commit
57bf16685a
1 changed files with 11 additions and 11 deletions
|
@ -9,10 +9,10 @@
|
|||
* These values are read-only and populated during the boot sequence of the game.
|
||||
* They are then referenced by internal game systems and are available for you to access
|
||||
* via `this.sys.game.device.os` from within any Scene.
|
||||
*
|
||||
*
|
||||
* @typedef {object} Phaser.Device.OS
|
||||
* @since 3.0.0
|
||||
*
|
||||
*
|
||||
* @property {boolean} android - Is running on android?
|
||||
* @property {boolean} chromeOS - Is running on chromeOS?
|
||||
* @property {boolean} cocoonJS - Is the game running under CocoonJS?
|
||||
|
@ -75,14 +75,14 @@ function init ()
|
|||
{
|
||||
OS.macOS = true;
|
||||
}
|
||||
else if (/Linux/.test(ua))
|
||||
{
|
||||
OS.linux = true;
|
||||
}
|
||||
else if (/Android/.test(ua))
|
||||
{
|
||||
OS.android = true;
|
||||
}
|
||||
else if (/Linux/.test(ua))
|
||||
{
|
||||
OS.linux = true;
|
||||
}
|
||||
else if (/iP[ao]d|iPhone/i.test(ua))
|
||||
{
|
||||
OS.iOS = true;
|
||||
|
@ -128,24 +128,24 @@ function init ()
|
|||
{
|
||||
OS.webApp = true;
|
||||
}
|
||||
|
||||
|
||||
if (window.cordova !== undefined)
|
||||
{
|
||||
OS.cordova = true;
|
||||
}
|
||||
|
||||
|
||||
if (process && process.versions && process.versions.node)
|
||||
{
|
||||
OS.node = true;
|
||||
}
|
||||
|
||||
|
||||
if (OS.node && typeof process.versions === 'object')
|
||||
{
|
||||
OS.nodeWebkit = !!process.versions['node-webkit'];
|
||||
|
||||
|
||||
OS.electron = !!process.versions.electron;
|
||||
}
|
||||
|
||||
|
||||
if (navigator.isCocoonJS)
|
||||
{
|
||||
OS.cocoonJS = true;
|
||||
|
|
Loading…
Reference in a new issue