Skip to content

Commit

Permalink
Merge branch 'url-params' into pb-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
pooh-bear committed Apr 23, 2024
2 parents ccfed12 + f5bb038 commit 963d5b2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions js/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,11 @@ window.CONFIG = {
params.forEach((param) => {
if (urlParams.has(param)) {
CONFIG[param] = urlParams.get(param)
}
if (urlParams.get('play')) {
hideSettings()
CONFIG.submit()
localStorage.setItem(param, urlParams.get(param))
}
})
} else if (CONFIG.loop || localStorage.getItem('loop') === 'y') {
}
if (CONFIG.loop || localStorage.getItem('loop') === 'y') {
CONFIG.loop = true
hideSettings()
CONFIG.submit()
Expand Down

0 comments on commit 963d5b2

Please sign in to comment.