fix: spotify state push
This commit is contained in:
parent
efd4ac8104
commit
38ddf6cde1
1 changed files with 11 additions and 0 deletions
|
@ -286,6 +286,17 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while (!ns(\"spotify\")) {
|
||||||
|
console.log(\"still no spotify\");
|
||||||
|
await (() => {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
setTimeout(() => {
|
||||||
|
resolve();
|
||||||
|
}, 500);
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
|
||||||
window.spotify_init = true;
|
window.spotify_init = true;
|
||||||
const client_id = \"{{ config.connections.spotify_client_id }}\";
|
const client_id = \"{{ config.connections.spotify_client_id }}\";
|
||||||
let token = \"{{ user.connections.Spotify[0].data.token }}\";
|
let token = \"{{ user.connections.Spotify[0].data.token }}\";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue