From 8551327bf0d76e75f924c963e9b1423213ec5b6c Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Sun, 12 Jan 2025 00:10:27 +0100 Subject: [PATCH] Fix callback component --- src/modules/web_app/frontend/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/web_app/frontend/index.js b/src/modules/web_app/frontend/index.js index 933f4d1..fee3498 100644 --- a/src/modules/web_app/frontend/index.js +++ b/src/modules/web_app/frontend/index.js @@ -58,7 +58,7 @@ const Main = { const AuthCallbackTwitch = { setup() { onMounted(() => { - fetch('/api/auth/callback/twitch/' + urlParams.search) + fetch('/api/auth/callback/twitch/' + window.location.search) .then(response => response.json()) .then(data => { localStorage.setItem('token', data.token);