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. 18, 2013, 10:07 a.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
« no previous file with comments | « _locales/en_US/messages.json ('k') | include.preload.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « _locales/en_US/messages.json ('k') | include.preload.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld