aboutsummaryrefslogtreecommitdiff
path: root/src/shared/versions/storage.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/versions/storage.js')
-rw-r--r--src/shared/versions/storage.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/shared/versions/storage.js b/src/shared/versions/storage.js
new file mode 100644
index 0000000..37603c8
--- /dev/null
+++ b/src/shared/versions/storage.js
@@ -0,0 +1,11 @@
+const load = () => {
+ return browser.storage.local.get('version').then(({ version }) => {
+ return version;
+ });
+};
+
+const save = (version) => {
+ return browser.storage.local.set({ version });
+};
+
+export { load, save };