Skip to content

Commit

Permalink
call setTheme immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
mohdali committed Oct 13, 2023
1 parent f1b5050 commit 5c251d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mohdali.github.io/wwwroot/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ window.setTheme = () => {
}
}

setTheme();

window.addEventListener("DOMContentLoaded", () => {
setTheme();
});
Expand Down

0 comments on commit 5c251d5

Please sign in to comment.