Suppress Firefox error when changing tabs

This commit is contained in:
Owen D'Aprile
2019-10-15 17:46:42 -04:00
parent eeb6d20e96
commit a8bd5d0068

View File

@@ -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) {