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);