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

Unified Diff: notification.js

Issue 29532767: Issue 5593 - Use messaging in popup for prefs, whitelisting, and stats (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Use chrome APIs instead of ext.pages Created Sept. 1, 2017, 6:40 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: notification.js
===================================================================
--- a/notification.js
+++ b/notification.js
@@ -77,17 +77,17 @@
{
let link = event.target;
while (link && link !== messageElement && link.localName !== "a")
link = link.parentNode;
if (!link)
return;
event.preventDefault();
event.stopPropagation();
- ext.pages.open(link.href);
+ chrome.tabs.create({url: link.href});
});
let notificationElement = document.getElementById("notification");
notificationElement.className = notification.type;
notificationElement.hidden = false;
notificationElement.addEventListener("click", event =>
{
if (event.target.id == "notification-close")

Powered by Google App Engine
This is Rietveld