Index: composer.js |
=================================================================== |
--- a/composer.js |
+++ b/composer.js |
@@ -32,32 +32,32 @@ |
{ |
event.preventDefault(); |
addFilters(); |
} |
} |
function addFilters() |
{ |
- ext.backgroundPage.sendMessage({ |
+ chrome.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) |
{ |
- ext.backgroundPage.sendMessage({ |
+ chrome.runtime.sendMessage({ |
type: "forward", |
targetPageId, |
payload: |
{ |
type: "composer.content.finished", |
remove: (typeof success == "boolean" ? success : false) |
} |
}); |