Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
Merge pull request #2 from Eeems/patch-1
Browse files Browse the repository at this point in the history
Fix callback
  • Loading branch information
marcelveldt authored Sep 21, 2024
2 parents c754131 + da999a6 commit fe8964c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h1>Music Assistant oAuth Redirect</h1>
const validOrigin = document.referrer?.includes('spotify.com');
const validDest = redirect_url.includes(':') && redirect_url.includes('/callback/');

const finalUrl = redirect_url + '?code=' + code;
const finalUrl = redirect_url + '?code=' + urlParams.get('code');

if (validOrigin && validDest) {
window.location.replace(finalUrl);
Expand Down

0 comments on commit fe8964c

Please sign in to comment.