summaryrefslogtreecommitdiff
path: root/js/getTheme.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/getTheme.ts')
-rw-r--r--js/getTheme.ts13
1 files changed, 0 insertions, 13 deletions
diff --git a/js/getTheme.ts b/js/getTheme.ts
deleted file mode 100644
index 769ea3c..0000000
--- a/js/getTheme.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/// <reference path="setTheme.ts" />
-
-function getTheme(): Theme {
- let theme = Theme.Dark;
-
- try {
- theme = JSON.parse(localStorage.getItem("theme")!);
- } catch (e: any) {
- console.log("invalid theme, using dark");
- }
-
- return theme;
-}