From 43ceddc2fc81b3f448d83a6ef253cae1f1e6e6da Mon Sep 17 00:00:00 2001 From: child_duckling <19170969+child-duckling@users.noreply.github.com> Date: Fri, 3 Dec 2021 17:17:25 -0800 Subject: [PATCH] auth pls work now --- docs/app-win/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/app-win/index.js b/docs/app-win/index.js index aa285413..07d04c31 100644 --- a/docs/app-win/index.js +++ b/docs/app-win/index.js @@ -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 || ''}`,