From 01b3c8be6a3cd143a044c826d7f79ed2128cdd3b Mon Sep 17 00:00:00 2001
From: sowgro <tpoke.ferrari@gmail.com>
Date: Sun, 3 Nov 2024 00:19:58 -0400
Subject: Start making settings work

---
 extension/src/Settings.tsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 extension/src/Settings.tsx

(limited to 'extension/src/Settings.tsx')

diff --git a/extension/src/Settings.tsx b/extension/src/Settings.tsx
new file mode 100644
index 0000000..7e44c34
--- /dev/null
+++ b/extension/src/Settings.tsx
@@ -0,0 +1,17 @@
+let settings: { [p: string]: any } = {
+    sort: "from-bookmarks",
+    backgroundMode: "from-theme",
+    backgroundColor: "#000000",
+    rootFolderID: 0,
+}
+
+function loadSettings() {
+    browser.storage.local.set(settings);
+}
+
+function writeSettings() {
+    browser.storage.local.get(settings).then(r => {
+        settings = r;
+    })
+}
+
-- 
cgit v1.2.3

