Merge branch 'master' into 2fa

This commit is contained in:
Ponkhy
2021-09-11 16:32:11 +02:00
committed by GitHub
16 changed files with 315 additions and 82 deletions

View File

@@ -32,12 +32,14 @@ export default {
created() {
window.addEventListener("resize", this.onResize);
let protocol = (location.protocol === "https:") ? "wss://" : "ws://";
let wsHost;
const env = process.env.NODE_ENV || "production";
if (env === "development" || localStorage.dev === "dev") {
wsHost = ":3001"
wsHost = protocol + location.hostname + ":3001";
} else {
wsHost = ""
wsHost = protocol + location.host;
}
socket = io(wsHost, {