From a26d8a8a1bed48a77e062914c120a23ace7bb8cf Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 24 Feb 2019 20:54:35 +0900 Subject: Capitalize background scripts --- src/background/repositories/VersionRepository.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/background/repositories/VersionRepository.js (limited to 'src/background/repositories/VersionRepository.js') 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 }); + } +} -- cgit v1.2.3