From a60c1fef231075cedc71468104f19c3b16c555f1 Mon Sep 17 00:00:00 2001 From: nycki Date: Fri, 21 Mar 2025 16:55:13 -0700 Subject: [PATCH] try loading script after dom --- static/light-toggle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/light-toggle.js b/static/light-toggle.js index fb7c492..06260d3 100644 --- a/static/light-toggle.js +++ b/static/light-toggle.js @@ -43,4 +43,4 @@ function main() { themeRefresh(); } -main(); +addEventListener('DOMContentLoaded', main);