From f1505761c04036cf79046fe41b42a31cbbf43431 Mon Sep 17 00:00:00 2001 From: Christopher Mayfield Date: Tue, 7 Jul 2026 18:53:17 -0500 Subject: [PATCH] fix: wire gallery timing URL params so playlist advances on override shaderDisplayDuration, fortuneDuration, screenshotCaptureDuration were read in gallery.js but never mapped in config.js paramMapping, so URL overrides were silently dropped and the gallery always fell back to the 42s default shuffle. --- js/config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/config.js b/js/config.js index f52d070..fb9eede 100644 --- a/js/config.js +++ b/js/config.js @@ -920,6 +920,11 @@ const paramMapping = { switchInterval: { key: "modeSwitchInterval", parser: (s) => nullNaN(Math.max(60000, parseInt(s))) }, // Minimum 1 minute showModeInfo: { key: "showModeInfo", parser: isTrue }, + // Gallery screensaver timing + shaderDisplayDuration: { key: "shaderDisplayDuration", parser: (s) => nullNaN(parseInt(s)) }, + fortuneDuration: { key: "fortuneDuration", parser: (s) => nullNaN(parseInt(s)) }, + screenshotCaptureDuration: { key: "screenshotCaptureDuration", parser: (s) => nullNaN(parseInt(s)) }, + // Multi-monitor fullscreen parameters fullscreenMultiple: { key: "fullscreenMultiple", parser: isTrue }, fullscreenUniform: { key: "fullscreenUniform", parser: isTrue },