diff options
Diffstat (limited to 'src/background/repositories/version.js')
-rw-r--r-- | src/background/repositories/version.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/background/repositories/version.js b/src/background/repositories/version.js new file mode 100644 index 0000000..4c71d05 --- /dev/null +++ b/src/background/repositories/version.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 }); + } +} |