🐛 window.location.protocol

This commit is contained in:
naiba 2020-10-25 09:57:50 +08:00
parent a77933fbe4
commit 3d360346ba

View File

@ -126,7 +126,7 @@
}
}
})
const wsProtocol = window.location.protocol == "https" ? "wss" : "ws"
const wsProtocol = window.location.protocol == "https:" ? "wss" : "ws"
const ws = new WebSocket(wsProtocol + '://' + window.location.host + '/ws');
ws.onopen = function (evt) {
$.suiAlert({