mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 16:20:02 +00:00
[editor] [#20] Fix: Strip query parameters from redirect uri
fixes #20 Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8a8347401e
commit
4892f05c2a
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ export default {
|
||||||
|
|
||||||
const params = new URLSearchParams()
|
const params = new URLSearchParams()
|
||||||
params.set('client_id', this.$root.vars.TwitchClientID)
|
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('response_type', 'token')
|
||||||
params.set('scope', scopes.join(' '))
|
params.set('scope', scopes.join(' '))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue