public
Created — forked from /main.js

Pasted form Komodo IDE

  • Download Gist
main.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13
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);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.