From 5b8d66a16eaa08e6226c3ac4c669f8fccf05cf50 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Tue, 8 Oct 2024 22:55:23 +0200 Subject: [PATCH] Support wakapi compat endpoint --- src/utils/user.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/utils/user.ts b/src/utils/user.ts index 5d6e949..0212cdb 100644 --- a/src/utils/user.ts +++ b/src/utils/user.ts @@ -21,9 +21,6 @@ export const getApiUrl = async () => { apiUrl = apiUrl.slice(0, -suffix.length); } } - if (!apiUrl.endsWith('/api/v1')) { - apiUrl = `${apiUrl}/api/v1`; - } return apiUrl; };