mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-14 15:49:31 -07:00
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:
@@ -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)'],
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user