From 94da7838f81b2da2d852fd0e5ea870fc73af7b4b Mon Sep 17 00:00:00 2001 From: William Burleson <72857839+Admiral-Billy@users.noreply.github.com> Date: Wed, 8 May 2024 19:14:09 -0400 Subject: [PATCH] fix offline imports (#659) --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index ef277630d..191b8f55b 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -220,7 +220,7 @@ export function executeIf(condition: boolean, promiseFunc: () => Promise): } export const sessionIdKey = 'pokerogue_sessionId'; -export const isLocal = window.location.hostname === 'localhost'; +export const isLocal = window.location.hostname === 'localhost' || window.location.hostname === ''; export const serverUrl = isLocal ? 'http://localhost:8001' : ''; export const apiUrl = isLocal ? serverUrl : 'https://api.pokerogue.net'; export const fallbackApiUrl = isLocal ? serverUrl : 'api';