Archived
2
0

lint fix.

This commit is contained in:
m1k1o 2021-03-09 18:20:06 +01:00
parent f68b8fe922
commit 9e64b47dea

View File

@ -31,7 +31,7 @@ export class NekoClient extends BaseClient implements EventEmitter<NekoEvents> {
private url!: string private url!: string
init(vue: Vue) { init(vue: Vue) {
const url = const url =
process.env.NODE_ENV === 'development' process.env.NODE_ENV === 'development'
? `ws://${location.host.split(':')[0]}:${process.env.VUE_APP_SERVER_PORT}/` ? `ws://${location.host.split(':')[0]}:${process.env.VUE_APP_SERVER_PORT}/`
: `${/https/gi.test(location.protocol) ? 'wss' : 'ws'}://${location.host}/` : `${/https/gi.test(location.protocol) ? 'wss' : 'ws'}://${location.host}/`