From e168dda7284db163d07284f6b6eddff59c6f0fe1 Mon Sep 17 00:00:00 2001 From: Greenlamp Date: Wed, 8 May 2024 13:37:27 +0200 Subject: [PATCH] fix local api url --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index ef277630dc4..2034c8100f1 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -222,7 +222,7 @@ export function executeIf(condition: boolean, promiseFunc: () => Promise): export const sessionIdKey = 'pokerogue_sessionId'; export const isLocal = window.location.hostname === 'localhost'; export const serverUrl = isLocal ? 'http://localhost:8001' : ''; -export const apiUrl = isLocal ? serverUrl : 'https://api.pokerogue.net'; +export const apiUrl = isLocal ? serverUrl : ''; export const fallbackApiUrl = isLocal ? serverUrl : 'api'; export function setCookie(cName: string, cValue: string): void {