fix local api url 2

This commit is contained in:
Greenlamp 2024-05-08 13:40:43 +02:00
parent e168dda728
commit 528b7021ee

View File

@ -222,7 +222,7 @@ export function executeIf<T>(condition: boolean, promiseFunc: () => Promise<T>):
export const sessionIdKey = 'pokerogue_sessionId';
export const isLocal = window.location.hostname === 'localhost';
export const serverUrl = isLocal ? 'http://localhost:8001' : '';
export const apiUrl = isLocal ? serverUrl : '';
export const apiUrl = isLocal ? serverUrl : 'api';
export const fallbackApiUrl = isLocal ? serverUrl : 'api';
export function setCookie(cName: string, cValue: string): void {