Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (26 sloc) 721 Bytes
<!DOCTYPE html>
<html>
<head>
<script src="lib/Gister.js"></script>
<script src="lib/GHFaves.js"></script>
</head>
<body>
<script>
var faves = new GHFaves();
// big generic listener to all extension messages
chrome.extension.onRequest.addListener(function(request, sender, callback) {
var msgHandler;
if(msgHandler = faves.messageHandlers[request.message]) {
msgHandler.apply(faves, arguments);
} else {
switch(request.message) {
case 'closeTab':
chrome.tabs.remove(sender.tab.id);
// returnToTab.selected = true;
break;
}
}
});
</script>
</body>
</html>