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

Unified Diff: lib/notificationHelper.js

Issue 29573801: Issue 4580 - Replace ext.getURL with extension.getURL (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created Oct. 11, 2017, 4:15 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 | « lib/filterComposer.js ('k') | lib/options.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/notificationHelper.js
===================================================================
--- a/lib/notificationHelper.js
+++ b/lib/notificationHelper.js
@@ -184,17 +184,17 @@
return;
activeNotification = notification;
if (shouldDisplay("notification", activeNotification.type))
{
let texts = NotificationStorage.getLocalizedTexts(notification);
let title = texts.title || "";
let message = (texts.message || "").replace(/<\/?(a|strong)>/g, "");
- let iconUrl = ext.getURL("icons/detailed/abp-128.png");
+ let iconUrl = chrome.extension.getURL("icons/detailed/abp-128.png");
let linkCount = (activeNotification.links || []).length;
if ("notifications" in chrome)
{
activeButtons = getNotificationButtons(activeNotification.type,
texts.message);
chrome.notifications.create("", {
type: "basic",
« no previous file with comments | « lib/filterComposer.js ('k') | lib/options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld