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

Unified Diff: webrequest.js

Issue 5749582424178688: Ported over anti-adblock message notification (Closed)
Patch Set: Created March 21, 2014, 1:29 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 | « notification.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrequest.js
===================================================================
--- a/webrequest.js
+++ b/webrequest.js
@@ -87,6 +87,10 @@
if (header.name.toLowerCase() == "x-adblock-key" && header.value)
processKeyException(header.value, tab, frame);
}
+
+ var notificationToShow = Notification.getNextToShow(details.url);
+ if (notificationToShow)
+ showNotification(notificationToShow);
}
chrome.webRequest.onHeadersReceived.addListener(onHeadersReceived, {urls: ["<all_urls>"]}, ["responseHeaders"]);
« no previous file with comments | « notification.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld