Changed message object
This commit is contained in:
parent
2e238e25f3
commit
1506c74b57
1 changed files with 4 additions and 5 deletions
|
@ -12,9 +12,8 @@ define([
|
|||
command.on("api:execute", function(id, c) {
|
||||
if (!id in targets) return c();
|
||||
var config = targets[id];
|
||||
var message = Object.create(config.message);
|
||||
var send = function() {
|
||||
chrome.runtime.sendMessage(config.id, message, null, function() {
|
||||
chrome.runtime.sendMessage(config.id, config.message, null, function() {
|
||||
if (chrome.runtime.lastError) {
|
||||
console.error(chrome.runtime.lastError);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue