Notify when updated

This commit is contained in:
Shin'ya Ueoka 2018-05-05 17:35:24 +09:00
parent a63311bd34
commit 88e216d49b
7 changed files with 161 additions and 1 deletions

View file

@ -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 };