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"
|
||||
} else if(localStorage.host == "dev") {
|
||||
wsurl = "ws://127.0.0.1:8081"
|
||||
} else {
|
||||
wsurl = localStorage.host;
|
||||
};
|
||||
this._ws = new WebSocket(wsurl,"pianoverse")
|
||||
Loading…
Add table
Add a link
Reference in a new issue