aboutsummaryrefslogtreecommitdiff
path: root/src/background/repositories/VersionRepository.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/repositories/VersionRepository.js')
-rw-r--r--src/background/repositories/VersionRepository.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/background/repositories/VersionRepository.js b/src/background/repositories/VersionRepository.js
new file mode 100644
index 0000000..4c71d05
--- /dev/null
+++ b/src/background/repositories/VersionRepository.js
@@ -0,0 +1,10 @@
+export default class VersionRepository {
+ async get() {
+ let { version } = await browser.storage.local.get('version');
+ return version;
+ }
+
+ update(version) {
+ return browser.storage.local.set({ version });
+ }
+}