phaser - v4.0.0-rc.4
    Preparing search index...

    Type Alias Browser

    Determines the browser type and version running this Phaser Game instance. 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.browser from within any Scene.

    type Browser = {
        chrome: boolean;
        chromeVersion: number;
        edge: boolean;
        firefox: boolean;
        firefoxVersion: number;
        ie: boolean;
        ieVersion: number;
        mobileSafari: boolean;
        opera: boolean;
        safari: boolean;
        safariVersion: number;
        silk: boolean;
        trident: boolean;
        tridentVersion: number;
    }
    Index

    Properties

    chrome: boolean

    Set to true if running in Chrome.

    chromeVersion: number

    If running in Chrome this will contain the major version number.

    edge: boolean

    Set to true if running in Microsoft Edge browser.

    firefox: boolean

    Set to true if running in Firefox.

    firefoxVersion: number

    If running in Firefox this will contain the major version number.

    ie: boolean

    Set to true if running in Internet Explorer 11 or less (not Edge).

    ieVersion: number

    If running in Internet Explorer this will contain the major version number. Beyond IE10 you should use Browser.trident and Browser.tridentVersion.

    mobileSafari: boolean

    Set to true if running in Mobile Safari.

    opera: boolean

    Set to true if running in Opera.

    safari: boolean

    Set to true if running in Safari.

    safariVersion: number

    If running in Safari this will contain the major version number.

    silk: boolean

    Set to true if running in the Silk browser (as used on the Amazon Kindle)

    trident: boolean

    Set to true if running a Trident version of Internet Explorer (IE11+)

    tridentVersion: number

    If running in Internet Explorer 11 this will contain the major version number. See http://msdn.microsoft.com/en-us/library/ie/ms537503(v=vs.85).aspx