Remove /sioconfig for real

This commit is contained in:
Calvin Montgomery 2017-09-30 15:26:47 -07:00
parent a2be65aead
commit 3cd8bfa8c7
6 changed files with 25 additions and 69 deletions

View file

@ -1,9 +1,12 @@
(function () {
var opts = {};
if (location.protocol === "https:") {
opts.secure = true;
}
window.socket = io.connect(IO_URL, opts);
var chosenServer = IO_SERVERS[0]; // Is the array even necessary for the ACP?
var opts = {
secure: chosenServer.secure
};
window.socket = io.connect(chosenServer.url, opts);
window.socket.on("connect", function () {
window.socket.emit("initACP");
window.socket.emit("acp-list-activechannels");