diff options
Diffstat (limited to 'webAO/client.js')
| -rw-r--r-- | webAO/client.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js index 84bd9bd..d6d388e 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -14,7 +14,7 @@ location.search.substr(1).split("&").forEach(function(item) { const serverIP = queryDict.ip; let mode = queryDict.mode; -const AO_HOST = queryDict.asset || "http://assets.aceattorneyonline.com/base/"; +const AO_HOST = queryDict.asset || "http://s3.wasabisys.com/webao/base/"; const MUSIC_HOST = AO_HOST + "sounds/music/"; const BAR_WIDTH = 90; const BAR_HEIGHT = 20; @@ -61,6 +61,7 @@ class Client { "EI": (args) => this.handleEI(args), "EM": (args) => this.handleEM(args), "SM": (args) => this.handleSM(args), + "BD": (args) => this.handleBD(args), "music": (args) => this.handlemusic(args), "DONE": (args) => this.handleDONE(args), "BN": (args) => this.handleBN(args), @@ -413,6 +414,14 @@ class Client { this.serv.send("RD#%"); } +/** + * Handles the banned packet + * @param {Array} args packet arguments + */ + handleBD(args) { + document.getElementById("client_loadingtext").innerHTML = "Banned: " + args[1]; + } + /** * Handles incoming music information, containing all entries * in the same packet. |
