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

Unified Diff: composer.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
Index: composer.js
===================================================================
--- a/composer.js
+++ b/composer.js
@@ -32,32 +32,32 @@
{
event.preventDefault();
addFilters();
}
}
function addFilters()
{
- chrome.runtime.sendMessage({
+ browser.runtime.sendMessage({
type: "filters.importRaw",
text: document.getElementById("filters").value
},
errors =>
{
if (errors.length > 0)
alert(errors.join("\n"));
else
closeDialog(true);
});
}
function closeDialog(success)
{
- chrome.runtime.sendMessage({
+ browser.runtime.sendMessage({
type: "forward",
targetPageId,
payload:
{
type: "composer.content.finished",
remove: (typeof success == "boolean" ? success : false)
}
});
« no previous file with comments | « composer.html ('k') | composer.postload.js » ('j') | lib/notificationHelper.js » ('J')

Powered by Google App Engine
This is Rietveld