Index: background.js |
=================================================================== |
--- a/background.js |
+++ b/background.js |
@@ -15,6 +15,14 @@ |
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
*/ |
+// onRequest and sendRequest are deprecated as of Chrome 20 |
+var ChromeCompat = { |
+ tabs: { |
+ onMessage: ("onMessage" in chrome.tabs) ? chrome.tabs.onMessage : chrome.tabs.onRequest, |
+ sendMessage: ("sendMessage" in chrome.tabs) ? chrome.tabs.sendMessage : chrome.tabs.sendRequest |
+ } |
+}; |
+ |
with(require("filterClasses")) |
{ |
this.Filter = Filter; |