forked from phaserjs/phaser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNet.js
More file actions
26 lines (20 loc) · 634 Bytes
/
Copy pathNet.js
File metadata and controls
26 lines (20 loc) · 634 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* @author Steven Rogers <soldoutactivist@gmail.com>
* @copyright 2015 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.
*/
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;