aboutsummaryrefslogtreecommitdiff
path: root/src/shared/versions/storage.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-06-17 22:02:32 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-06-17 22:04:31 +0900
commitb74acf6f6aef4e4241ba62c72ed8ddb21adc751d (patch)
tree3cba586e52ef703d1b49a85ad15d91aca4cbc65f /src/shared/versions/storage.js
parent94d411234ada47bef2c8f4a3b0fc77904f0900a6 (diff)
Use await/async on shared directory
Diffstat (limited to 'src/shared/versions/storage.js')
-rw-r--r--src/shared/versions/storage.js7
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) => {