Skip to content

Commit

Permalink
fix: check for exceptions prior to compare
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 5af301b commit c39ae36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ function handleMessage(request, sender, sendResponse) {
if (
updating ||
list.licenses === undefined ||
licensesLoaded < list.licenses.length
list.exceptions === undefined ||
licensesLoaded < list.licenses.length + list.exceptions.length
) {
pendingcompare = true;
comparequeue.push({ selection: selection, tabId: activeTabId });
Expand Down

0 comments on commit c39ae36

Please sign in to comment.