From 4892f05c2a350e1df5216c851094def0081e814b Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 8 Feb 2022 20:25:00 +0100 Subject: [PATCH] [editor] [#20] Fix: Strip query parameters from redirect uri fixes #20 Signed-off-by: Knut Ahlers --- src/app.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.vue b/src/app.vue index 9871616..63bc8fe 100644 --- a/src/app.vue +++ b/src/app.vue @@ -215,7 +215,7 @@ export default { const params = new URLSearchParams() params.set('client_id', this.$root.vars.TwitchClientID) - params.set('redirect_uri', window.location.href.split('#')[0]) + params.set('redirect_uri', window.location.href.split('#')[0].split('?')[0]) params.set('response_type', 'token') params.set('scope', scopes.join(' '))