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';