Skip to content

Commit

Permalink
fix: fix async steps preventing update completion
Browse files Browse the repository at this point in the history
Signed-off-by: Alan D. Tse <alandtse@gmail.com>
  • Loading branch information
alandtse committed Oct 4, 2019
1 parent 346dcea commit d7a2f8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ function workeronmessage(event) {
storeList(externallicenselist);
list = externallicenselist;
}
checkUpdateDone();
});

break;
Expand All @@ -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 (
Expand Down

0 comments on commit d7a2f8c

Please sign in to comment.