Skip to content

Instantly share code, notes, and snippets.

@jeffgca
Forked from anonymous/main.js
Created September 21, 2011 00:10
Show Gist options
  • Save jeffgca/1230795 to your computer and use it in GitHub Desktop.
Save jeffgca/1230795 to your computer and use it in GitHub Desktop.
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