diff options
Diffstat (limited to 'src/shared/versions/storage.js')
-rw-r--r-- | src/shared/versions/storage.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/shared/versions/storage.js b/src/shared/versions/storage.js index 37603c8..7883258 100644 --- a/src/shared/versions/storage.js +++ b/src/shared/versions/storage.js @@ -1,7 +1,6 @@ -const load = () => { - return browser.storage.local.get('version').then(({ version }) => { - return version; - }); +const load = async() => { + let { version } = await browser.storage.local.get('version'); + return version; }; const save = (version) => { |