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

Unified Diff: lib/antiadblockInit.js

Issue 29573083: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Add polyfill.js to README.md Created Oct. 17, 2017, 12:35 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
« no previous file with comments | « i18n.js ('k') | mobile-options.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/antiadblockInit.js
===================================================================
--- a/lib/antiadblockInit.js
+++ b/lib/antiadblockInit.js
@@ -24,18 +24,18 @@
const {Subscription} = require("subscriptionClasses");
const {Notification} = require("notification");
exports.initAntiAdblockNotification = function initAntiAdblockNotification()
{
let notification = {
id: "antiadblock",
type: "question",
- title: chrome.i18n.getMessage("notification_antiadblock_title"),
- message: chrome.i18n.getMessage("notification_antiadblock_message"),
+ title: browser.i18n.getMessage("notification_antiadblock_title"),
+ message: browser.i18n.getMessage("notification_antiadblock_message"),
urlFilters: []
};
function notificationListener(approved)
{
let subscription = Subscription.fromURL(Prefs.subscriptions_antiadblockurl);
if (subscription.url in FilterStorage.knownSubscriptions)
subscription.disabled = !approved;
« no previous file with comments | « i18n.js ('k') | mobile-options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld