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

Unified Diff: subscriptionLink.postload.js

Issue 29570614: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Rebase Created Oct. 13, 2017, 7:59 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
« lib/notificationHelper.js ('K') | « qunit/tests/prefs.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: subscriptionLink.postload.js
===================================================================
--- a/subscriptionLink.postload.js
+++ b/subscriptionLink.postload.js
@@ -88,16 +88,16 @@
title = url;
// Trim spaces in title and URL
title = title.trim();
url = url.trim();
if (!/^(https?|ftp):/.test(url))
return;
- chrome.runtime.sendMessage({
+ browser.runtime.sendMessage({
type: "subscriptions.add",
title,
url,
confirm: true
});
}, true);
}
« lib/notificationHelper.js ('K') | « qunit/tests/prefs.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld