From 9e64b47deaf021aa90bd4d9d2e36e2b873a2e83e Mon Sep 17 00:00:00 2001 From: m1k1o Date: Tue, 9 Mar 2021 18:20:06 +0100 Subject: [PATCH] lint fix. --- client/src/neko/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/neko/index.ts b/client/src/neko/index.ts index f7e5dbbd..97eb7e1f 100644 --- a/client/src/neko/index.ts +++ b/client/src/neko/index.ts @@ -31,7 +31,7 @@ export class NekoClient extends BaseClient implements EventEmitter { private url!: string init(vue: Vue) { - const url = + const url = process.env.NODE_ENV === 'development' ? `ws://${location.host.split(':')[0]}:${process.env.VUE_APP_SERVER_PORT}/` : `${/https/gi.test(location.protocol) ? 'wss' : 'ws'}://${location.host}/`