From af7eaa9aeaf60da911971c3f2880ba2a76d5a50b Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 1 Apr 2026 20:53:29 +0200 Subject: [PATCH] fix(desktop): use stored URL instead of window.API_URL in template window is not accessible as a global in Vue templates, causing "Cannot read properties of undefined (reading 'API_URL')" when clicking sign in on the desktop app. --- frontend/src/views/user/DesktopLogin.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/user/DesktopLogin.vue b/frontend/src/views/user/DesktopLogin.vue index de20efc1e..db5718455 100644 --- a/frontend/src/views/user/DesktopLogin.vue +++ b/frontend/src/views/user/DesktopLogin.vue @@ -18,7 +18,7 @@ {{ $t('user.auth.login') }} @@ -87,7 +87,8 @@ const {redirectIfSaved} = useRedirectToLastVisited() const waitingForAuth = ref(false) const errorMessage = ref('') -const hasStoredServer = localStorage.getItem('API_URL') !== null +const storedServerUrl = localStorage.getItem('API_URL') +const hasStoredServer = storedServerUrl !== null const showCustomServerInput = ref(false) listenForDesktopOAuthTokens(async (tokens) => {