Skip to content

Commit

Permalink
Update background.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NDevTK authored Apr 1, 2022
1 parent c16415e commit d1d4545
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
play(tabId, true);
}
}
if (changeInfo.discarded) {
remove(tabId);
}
if (!hasProperty(changeInfo, 'audible')) return // Bool that contains if audio is playing on tab.
if (changeInfo.audible) {
// If has not got a play message from the content script assume theres no permission.
Expand Down

0 comments on commit d1d4545

Please sign in to comment.