From d7a2f8c6f52bab35ad44c17f5c89edbeaacaebd5 Mon Sep 17 00:00:00 2001 From: "Alan D. Tse" Date: Fri, 4 Oct 2019 03:00:47 -0700 Subject: [PATCH] fix: fix async steps preventing update completion Signed-off-by: Alan D. Tse --- app/scripts/background.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/scripts/background.js b/app/scripts/background.js index 5081b03..1696d32 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -322,6 +322,7 @@ function workeronmessage(event) { storeList(externallicenselist); list = externallicenselist; } + checkUpdateDone(); }); break; @@ -334,6 +335,7 @@ function workeronmessage(event) { list[type + "dict"] = {}; } list[type + "dict"][spdxid] = item.data; + checkUpdateDone(); console.log("Saving %s: %s", type, spdxid, item.data); getStorage(spdxid).then(function(result) { if (