Skip to content

Commit

Permalink
fix: fix background compares processing
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 5, 2019
1 parent b726b5a commit 1c8a585
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,9 @@ function workeronmessage(event) {
filtered[tabId]["results"][spdxid] = result;
unsorted[tabId][spdxid] = result;
completedcompares++;
total = Object.keys(urls).reduce(type => {
return Object.keys(list[type + "dict"]).length;
});
total = Object.keys(urls).reduce((total, type) => {
return total + Object.keys(list[type + "dict"]).length;
}, 0);
if (completedcompares === total) {
console.log(
"Done with background compare of %s for tab %s",
Expand Down

0 comments on commit 1c8a585

Please # to comment.