Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: background.js

Issue 11627039: Added ad counting functionality (Closed)
Patch Set: Created Sept. 11, 2013, 3:10 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld