aboutsummaryrefslogtreecommitdiff
path: root/src/shared/versions/storage.js
blob: 37603c84fe9601d9615d6ed14b86fa0c6b6433ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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 };