Skip to content

Commit

Permalink
Fix cases where callback was not passed to captureTabThenGuardedCompare
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Chan committed Dec 4, 2019
1 parent 0a76e8c commit 5641c13
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ chrome.runtime.onConnect.addListener((port) => {
if (message.from === 'resize') {
const tabId = messageSender.sender.tab.id;
clearTabIdAndCurrentDataURI(tabId, () => {
captureTabThenGuardedCompare(tabId);
captureTabThenGuardedCompare(tabId, () => {
startIntervalTimer(tabId, 'onResize');
});
});
}
if (message.from === 'blur') {
Expand All @@ -50,7 +52,9 @@ chrome.runtime.onConnect.addListener((port) => {
if (message.action === 'Clear then capture') {
const tabId = messageSender.sender.tab.id;
clearTabIdAndCurrentDataURI(tabId, () => {
captureTabThenGuardedCompare(tabId);
captureTabThenGuardedCompare(tabId, () => {
startIntervalTimer(tabId, 'onClearThenCapture');
});
});
}
if (message.action === 'Refresh blacklist') {
Expand Down

0 comments on commit 5641c13

Please sign in to comment.