Create a gist now

Instantly share code, notes, and snippets.

Pasted form Komodo IDE
var tabs = require("tabs");
tabs.on("ready", function(tab) {
console.log(tab.title);
tab.attach({
contentScript: 'document.defaultView.postMessage("this is my message...", "*"); '
});
}
);
var url = require("self").data.url("index.html");
//console.log(url);
tabs.open(url);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment