diff options
author | Owen D'Aprile <[email protected]> | 2019-10-15 17:46:42 -0400 |
---|---|---|
committer | Owen D'Aprile <[email protected]> | 2019-10-15 17:46:42 -0400 |
commit | a8bd5d00685701dee2ad9626c78f53e70cb4c15d (patch) | |
tree | d55d9fbaa058333969cd325f57ad08b4ce8219a3 | |
parent | eeb6d20e965d0eb88d4df188a6aff9a349250f67 (diff) | |
download | SponsorBlock-a8bd5d00685701dee2ad9626c78f53e70cb4c15d.tar.gz SponsorBlock-a8bd5d00685701dee2ad9626c78f53e70cb4c15d.zip |
Suppress Firefox error when changing tabs
-rw-r--r-- | background.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/background.js b/background.js index 28fd6bb0..e397bb16 100644 --- a/background.js +++ b/background.js @@ -1,7 +1,7 @@ -chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) { +chrome.tabs.onUpdated.addListener(function(tabId) { chrome.tabs.sendMessage(tabId, { message: 'update', - }); + }, () => void chrome.runtime.lastError ); // Suppress error on Firefox }); chrome.runtime.onMessage.addListener(function (request, sender, callback) { |