From e986f5638e541d9da20bdd3458ad128930a3f9f4 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Mon, 1 Dec 2025 20:19:06 -0800 Subject: [PATCH] Update initGallery position to wait for opts --- javascript/startup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascript/startup.js b/javascript/startup.js index 82194d942..5a1af8f5e 100644 --- a/javascript/startup.js +++ b/javascript/startup.js @@ -38,7 +38,6 @@ async function initStartup() { await initAccordions(); await initSettings(); await initImageViewer(); - await initGallery(); await initiGenerationParams(); await initChangelog(); await setupControlUI(); @@ -47,6 +46,8 @@ async function initStartup() { await reconnectUI(); await waitForOpts(); + await initGallery(); + log('mountURL', window.opts.subpath); if (window.opts.subpath?.length > 0) { window.subpath = window.opts.subpath;