[editor] [#20] Fix: Strip query parameters from redirect uri

fixes #20

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-02-08 20:25:00 +01:00
parent 8a8347401e
commit 4892f05c2a
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -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(' '))