Created — forked from anonymous/main.js

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Pasted form Komodo IDE

View main.js
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.