Skip to content

Commit

Permalink
Check for block when content loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
proginosko committed Dec 10, 2017
1 parent ec48b67 commit 0cdcc79
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -909,8 +909,13 @@ function handleTabUpdated(tabId, changeInfo, tab) {
let focus = tab.active && (!gFocusWindowId || tab.windowId == gFocusWindowId);

if (changeInfo.status && changeInfo.status == "complete") {
clockPageTime(tabId, true, focus);
updateTimer(tabId);
clockPageTime(tab.id, true, focus);

let blocked = checkTab(tab.id, tab.url, false);

if (!blocked) {
updateTimer(tab.id);
}
}
}

Expand Down

0 comments on commit 0cdcc79

Please sign in to comment.