UNPKG

phaser-ce

Version:

Phaser CE (Community Edition) is a fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.

30 lines (23 loc) 706 B
/** * @author Steven Rogers <soldoutactivist@gmail.com> * @copyright 2016 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * This is a stub for the Phaser Net Class. * It allows you to exclude the default Net from your build, without making Game crash. */ /** * No-operation for Phaser Net stub. */ var netNoop = function () {}; Phaser.Net = netNoop; Phaser.Net.prototype = { isDisabled: true, getHostName: netNoop, checkDomainName: netNoop, updateQueryString: netNoop, getQueryString: netNoop, decodeURI: netNoop }; Phaser.Net.prototype.constructor = Phaser.Net;