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

Unified Diff: safari/ext/background.js

Issue 29340571: Issue 3687 - Add experimental support for Safari content blockers (Closed)
Patch Set: Created April 19, 2016, 1:59 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: safari/ext/background.js
diff --git a/safari/ext/background.js b/safari/ext/background.js
index 38870c0564b31fca093a5cb0c36419a0063014a7..ab15ae4e414c502b7bdb49ef58e0c8da36a04213 100644
--- a/safari/ext/background.js
+++ b/safari/ext/background.js
@@ -420,6 +420,9 @@
event.message = response;
break;
+ case "useContentBlockerAPI":
Sebastian Noack 2016/05/12 11:12:23 I think this should rather go into safari/contentB
kzar 2016/05/17 15:15:40 As discussed in IRC we can actually use prefs.get
+ event.message = require("prefs").Prefs["safariContentBlocker"];
+ break;
}
break;
case "request":

Powered by Google App Engine
This is Rietveld