Skip to content

Commit

Permalink
fix autoplay
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Nov 18, 2024
1 parent 2a0d106 commit dd0f3e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function setupUI () {
configContainer.appendChild(saveStateButton);
document.body.appendChild(configContainer);

if (params.url) {
if (params.url && 'play' in params) {
loadPlayers();
}
}
Expand Down Expand Up @@ -296,6 +296,10 @@ function remakeHash() {
}
if (urls.length) {
params.push('url=' + urls.join(','));

if (players.length) {
params.push('play');
}
}

const state = null;
Expand Down

0 comments on commit dd0f3e4

Please sign in to comment.