mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Fix callback component
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user