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({
|
var app = new Vue({
|
||||||
el: "#app",
|
el: "#app",
|
||||||
data: {
|
data: {
|
||||||
|
@ -41,7 +47,7 @@ var app = new Vue({
|
||||||
document.addEventListener('musickitloaded', function() {
|
document.addEventListener('musickitloaded', function() {
|
||||||
// MusicKit global is now defined
|
// MusicKit global is now defined
|
||||||
MusicKit.configure({
|
MusicKit.configure({
|
||||||
developerToken: '',
|
developerToken: `${auth || ''}`,
|
||||||
app: {
|
app: {
|
||||||
name: 'My Cool Web App',
|
name: 'My Cool Web App',
|
||||||
build: '1978.4.1'
|
build: '1978.4.1'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue