auth pls work now

This commit is contained in:
child_duckling 2021-12-03 17:17:25 -08:00
parent 3aa0ce9713
commit 43ceddc2fc

View file

@ -1,5 +1,4 @@
const urlParams = new URLSearchParams(window.location.search);
let auth = urlParams.get('auth')
var app = new Vue({
el: "#app",
@ -42,6 +41,8 @@ var app = new Vue({
})
document.addEventListener('musickitloaded', function() {
const urlParams = new URLSearchParams(window.location.search);
let auth = urlParams.get('auth')
// MusicKit global is now defined
MusicKit.configure({
developerToken: `${auth || ''}`,