diff --git a/background.js b/background.js index 0d80d7ce..eed9a9aa 100644 --- a/background.js +++ b/background.js @@ -190,7 +190,12 @@ contextMenus = Object.assign({ cs.matches.some(match => { if ((match == ALL_URLS || url.match(match)) && (!url.startsWith('chrome') || url == NTP)) { - chrome.tabs.sendMessage(id, PING, pong => !pong && injectCS(cs, id)); + chrome.tabs.sendMessage(id, PING, pong => { + if (!pong) { + injectCS(cs, id); + } + ignoreChromeError(); + }); return true; } });