From a8bd5d00685701dee2ad9626c78f53e70cb4c15d Mon Sep 17 00:00:00 2001 From: Owen D'Aprile <17219838+owendaprile@users.noreply.github.com> Date: Tue, 15 Oct 2019 17:46:42 -0400 Subject: [PATCH] Suppress Firefox error when changing tabs --- background.js | 4 ++-- 1 file 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) {