From c93f1c5f6cf07a6d4168b9c81b7442b3124a8573 Mon Sep 17 00:00:00 2001 From: pataar Date: Tue, 3 Oct 2023 00:17:35 +0200 Subject: [PATCH] revert custom env --- src/store/socket/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/socket/index.ts b/src/store/socket/index.ts index aa772298c8..08e865e742 100644 --- a/src/store/socket/index.ts +++ b/src/store/socket/index.ts @@ -6,9 +6,9 @@ import { getters } from '@/store/socket/getters' import { RootState } from '@/store/types' export const getDefaultState = (): SocketState => { - const hostname = (import.meta.env.VUE_APP_HOSTNAME as string) || 'tamo.pataar.nl' + const hostname = (import.meta.env.VUE_APP_HOSTNAME as string) || window.location.hostname const defaultPort = window.location.port || (window.location.protocol === 'https:' ? 443 : 80) - const port = import.meta.env.VUE_APP_PORT ? Number(import.meta.env.VUE_APP_PORT) : Number(7125) + const port = import.meta.env.VUE_APP_PORT ? Number(import.meta.env.VUE_APP_PORT) : Number(defaultPort) return { hostname,