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