summaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-06-17 22:33:24 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-06-17 22:33:24 -0500
commit01482068726ee6de5336ed01bfadaeaaaf02666e (patch)
tree041e50f7a877551ecf2ec3c8df927fe6ac5aeb86 /src/index.js
parentecc580218ac64cc5d42b197bdaf9d15bd551d64b (diff)
downloadimmich-frame-01482068726ee6de5336ed01bfadaeaaaf02666e.tar.xz
immich-frame-01482068726ee6de5336ed01bfadaeaaaf02666e.zip
settings page save/load config
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js
index b0862c3..7d7c9db 100644
--- a/src/index.js
+++ b/src/index.js
@@ -6,10 +6,11 @@ import Page from "./pages.js"
import "./icons.js"
import initSlides from "./slides.js"
import initAlbums from "./albums.js"
+import initSettings from "./settings.js"
const slideshow = new Page(document.querySelector("#slideshow"), ["", "/slideshow"], initSlides)
-const albums = new Page(document.querySelector("#albums"), ["/albums"], initAlbums)
-const settings = new Page(document.querySelector("#settings"), ["/settings"])
+const albums = new Page(document.querySelector("#albums"), ["/albums"], initAlbums)
+const settings = new Page(document.querySelector("#settings"), ["/settings"], initSettings)
window.addEventListener("popstate", Page.pathnameCallback)
Page.pathnameCallback() /* run after all pages are registered */