Index: ext/content.js |
=================================================================== |
--- a/ext/content.js |
+++ b/ext/content.js |
@@ -1,13 +1,14 @@ |
"use strict"; |
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => |
{ |
- return ext.onMessage._dispatch(message, {}, sendResponse).indexOf(true) != -1; |
+ return !("tab" in sender) && |
+ ext.onMessage._dispatch(message, {}, sendResponse).indexOf(true) != -1; |
}); |
(function() |
{ |
let port = null; |
ext.onExtensionUnloaded = { |
addListener(listener) |