I have a need to run some javascript from my CI app. This is what I need to run:
Code:
// The ID of the extension we want to talk to.
var editorExtensionId = "abcdefghijklmnoabcdefhijklmnoabc";
// Make a simple request:
chrome.runtime.sendMessage(editorExtensionId, {openUrlInEditor: url},
function(response) {
if (!response.success)
handleError(url);
});
This is basically what I need to send a message from my CI app to my Chrome Extension and came from the Chrome developers forum. I know the Id of my extension. I am not sure what is meant by :
{openUrlInEditor: url}, but I assume that is the message I want to send? In my case I probably will send a "jsonized" buffer.
But how do I get the above code to run when a Grocery crud callback is triggered?
proof that an old dog can learn new tricks