3 Commits

Author SHA1 Message Date
ad6ef5fe01 like this? 2026-03-23 14:59:54 +01:00
a7a0fee815 add pageshow handler 2026-03-23 14:57:40 +01:00
cedb187c28 changed order so darkmode gets detected first 2026-03-23 14:49:23 +01:00

View File

@@ -10,6 +10,9 @@ class PhotoGallery {
this.darkModeToggle = this.darkModeToggle.bind(this); this.darkModeToggle = this.darkModeToggle.bind(this);
this.debounce = this.debounce.bind(this); this.debounce = this.debounce.bind(this);
this.detectDarkMode = this.detectDarkMode.bind(this); this.detectDarkMode = this.detectDarkMode.bind(this);
this.detectDarkMode();
this.filter = this.filter.bind(this); this.filter = this.filter.bind(this);
this.finalize = this.finalize.bind(this); this.finalize = this.finalize.bind(this);
this.insertPath = this.insertPath.bind(this); this.insertPath = this.insertPath.bind(this);
@@ -203,7 +206,6 @@ class PhotoGallery {
this.setupDropdownToggle(); this.setupDropdownToggle();
this.setupTagHandlers(); this.setupTagHandlers();
this.setupClickHandlers(); this.setupClickHandlers();
this.detectDarkMode();
window.addEventListener("scroll", this.scrollFunction); window.addEventListener("scroll", this.scrollFunction);
} }