Notify when updated
This commit is contained in:
parent
a63311bd34
commit
88e216d49b
7 changed files with 161 additions and 1 deletions
11
src/shared/versions/storage.js
Normal file
11
src/shared/versions/storage.js
Normal 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 };
|
Reference in a new issue