diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-06-17 22:02:32 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-06-17 22:04:31 +0900 |
commit | b74acf6f6aef4e4241ba62c72ed8ddb21adc751d (patch) | |
tree | 3cba586e52ef703d1b49a85ad15d91aca4cbc65f /src/shared/versions/storage.js | |
parent | 94d411234ada47bef2c8f4a3b0fc77904f0900a6 (diff) |
Use await/async on shared directory
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) => { |