Fix auto-play logic for sticky kiosk mode
The previous logic only checked URL parameters for kiosk mode, but sticky kiosk can enable kiosk mode from localStorage without URL parameters. Now checks actual kiosk setting value. Fix typo in scan line settings name.
This commit is contained in:
parent
10baefc901
commit
2a975d4d6d
2 changed files with 2 additions and 2 deletions
|
|
@ -136,7 +136,7 @@ const init = async () => {
|
|||
}
|
||||
|
||||
// Auto-play logic: also play immediately if kiosk mode is enabled
|
||||
const play = urlKioskCheckbox ?? localStorage.getItem('play');
|
||||
const play = settings.kiosk.value || urlKioskCheckbox === 'true' ? 'true' : localStorage.getItem('play');
|
||||
if (play === null || play === 'true') postMessage('navButton', 'play');
|
||||
|
||||
document.querySelector('#btnClearQuery').addEventListener('click', () => {
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ const init = () => {
|
|||
sticky: true,
|
||||
values: [
|
||||
['auto', 'Auto (Adaptive)'],
|
||||
['thin', 'Thin (1p)'],
|
||||
['thin', 'Thin (1x)'],
|
||||
['medium', 'Medium (2x)'],
|
||||
['thick', 'Thick (3x)'],
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue