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) |
} |
}); |