aboutsummaryrefslogtreecommitdiff
path: root/src/shared/versions/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/versions/index.js')
-rw-r--r--src/shared/versions/index.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/shared/versions/index.js b/src/shared/versions/index.js
index ee9f3b5..ba3d183 100644
--- a/src/shared/versions/index.js
+++ b/src/shared/versions/index.js
@@ -13,13 +13,12 @@ const notificationClickListener = (id) => {
browser.notifications.onClicked.removeListener(notificationClickListener);
};
-const checkUpdated = () => {
- return storage.load().then((prev) => {
- if (!prev) {
- return true;
- }
- return manifest.version !== prev;
- });
+const checkUpdated = async() => {
+ let prev = await storage.load();
+ if (!prev) {
+ return true;
+ }
+ return manifest.version !== prev;
};
const notify = () => {