Update initGallery position to wait for opts

This commit is contained in:
awsr
2025-12-01 20:19:06 -08:00
parent 75dc851d1c
commit e986f5638e
+2 -1
View File
@@ -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;