Changed message object

This commit is contained in:
Scott Pigeon 2015-02-21 11:23:33 -05:00
parent 2e238e25f3
commit 1506c74b57

View file

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