summaryrefslogtreecommitdiff
path: root/js/toggleTheme.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/toggleTheme.ts')
-rw-r--r--js/toggleTheme.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/toggleTheme.ts b/js/toggleTheme.ts
index 733a0f3..b5514d2 100644
--- a/js/toggleTheme.ts
+++ b/js/toggleTheme.ts
@@ -1,7 +1,8 @@
+/// <reference path="getTheme.ts" />
/// <reference path="setTheme.ts" />
function toggleTheme() {
- let theme: Theme = JSON.parse(localStorage.getItem("theme")!);
+ let theme = getTheme();
if (theme == Theme.Light) {
theme = Theme.Dark;