mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-04-17 11:30:08 +02:00
changed order so darkmode gets detected first
This commit is contained in:
@@ -191,6 +191,7 @@ class PhotoGallery {
|
||||
}
|
||||
|
||||
onLoad() {
|
||||
this.detectDarkMode();
|
||||
document.querySelectorAll(".tagtoggle").forEach((toggle) => {
|
||||
toggle.addEventListener("mouseup", (event) => {
|
||||
event.stopPropagation();
|
||||
@@ -203,7 +204,6 @@ class PhotoGallery {
|
||||
this.setupDropdownToggle();
|
||||
this.setupTagHandlers();
|
||||
this.setupClickHandlers();
|
||||
this.detectDarkMode();
|
||||
|
||||
window.addEventListener("scroll", this.scrollFunction);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user