Index: chrome/common.js |
=================================================================== |
--- a/chrome/common.js |
+++ b/chrome/common.js |
@@ -70,7 +70,7 @@ |
_wrapListener: function(listener) { |
return function(message, sender, sendResponse) |
{ |
- if (sender.tab && sender.tab.id >= 0) |
+ if ("Tab" in window && sender.tab && sender.tab.id >= 0) |
Wladimir Palant
2014/01/16 08:01:10
So we have content scripts receive messages where
Thomas Greiner
2014/01/16 10:15:30
Yes, that is the case and it seems like it's inten
Wladimir Palant
2014/01/16 10:44:49
Ok, this actually makes sense then.
|
sender.tab = new Tab(sender.tab); |
return listener(message, sender, sendResponse); |
}; |