url param auth
This commit is contained in:
parent
451fb433eb
commit
dea0e5693d
1 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
const urlParams = new URLSearchParams(window.location.search);
|
||||
if (urlParams.has('auth')) {
|
||||
let auth = urlParams.get('auth')
|
||||
//delete search param
|
||||
}
|
||||
|
||||
var app = new Vue({
|
||||
el: "#app",
|
||||
data: {
|
||||
|
@ -41,7 +47,7 @@ var app = new Vue({
|
|||
document.addEventListener('musickitloaded', function() {
|
||||
// MusicKit global is now defined
|
||||
MusicKit.configure({
|
||||
developerToken: '',
|
||||
developerToken: `${auth || ''}`,
|
||||
app: {
|
||||
name: 'My Cool Web App',
|
||||
build: '1978.4.1'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue