summaryrefslogtreecommitdiff
path: root/include/initScripts.shtml
diff options
context:
space:
mode:
Diffstat (limited to 'include/initScripts.shtml')
-rw-r--r--include/initScripts.shtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/initScripts.shtml b/include/initScripts.shtml
index 86feb76..d39597c 100644
--- a/include/initScripts.shtml
+++ b/include/initScripts.shtml
@@ -1,3 +1,4 @@
+<script src="/js/getTheme.js" type="text/javascript"></script>
<script src="/js/initImages.js" type="text/javascript"></script>
<script src="/js/loadPage.js" type="text/javascript"></script>
<script src="/js/setNavBarState.js" type="text/javascript"></script>
@@ -7,8 +8,7 @@
<script type="text/javascript">
(function() {
- let theme = JSON.parse(localStorage.getItem("theme"));
- setTheme(theme);
+ setTheme(getTheme());
initImages();
})();