add localstorage.host option
This commit is contained in:
parent
afcd1f2778
commit
c1155ef3e7
3 changed files with 4 additions and 1 deletions
|
@ -6,5 +6,7 @@ if(!localStorage.host) {
|
||||||
wsurl = "wss://pianoverse.net"
|
wsurl = "wss://pianoverse.net"
|
||||||
} else if(localStorage.host == "dev") {
|
} else if(localStorage.host == "dev") {
|
||||||
wsurl = "ws://127.0.0.1:8081"
|
wsurl = "ws://127.0.0.1:8081"
|
||||||
|
} else {
|
||||||
|
wsurl = localStorage.host;
|
||||||
};
|
};
|
||||||
this._ws = new WebSocket(wsurl,"pianoverse")
|
this._ws = new WebSocket(wsurl,"pianoverse")
|
File diff suppressed because one or more lines are too long
|
@ -13,6 +13,7 @@ This client contains two patches, internal.patch, and ws.patch.
|
||||||
| | api.pianoverse.me |
|
| | api.pianoverse.me |
|
||||||
| mainline | pianoverse.net |
|
| mainline | pianoverse.net |
|
||||||
| dev | 127.0.0.1:8081 |
|
| dev | 127.0.0.1:8081 |
|
||||||
|
| anything else | localStorage.host |
|
||||||
|
|
||||||
2. internal.patch
|
2. internal.patch
|
||||||
Exposes all internal pianoverse APIs on window.PvInternals.
|
Exposes all internal pianoverse APIs on window.PvInternals.
|
||||||
|
|
Loading…
Reference in a new issue