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

Unified Diff: lib/antiadblockInit.js

Issue 29569659: Issue 4580 - Replace ext.i18n.getMessage with i18n.getMessage (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Rebase Created Oct. 9, 2017, 5:19 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
« ext/common.js ('K') | « i18n.js ('k') | mobile-options.js » ('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: ext.i18n.getMessage("notification_antiadblock_title"),
- message: ext.i18n.getMessage("notification_antiadblock_message"),
+ title: chrome.i18n.getMessage("notification_antiadblock_title"),
+ message: chrome.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;
« ext/common.js ('K') | « i18n.js ('k') | mobile-options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld