Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 582 Bytes
<!DOCTYPE html>
function showPageAction( request, sender, sendResponse ) {
// Show the page action leaf icon );
// Return nothing to let the connection be cleaned up
// Listen for the content script to send a message
chrome.extension.onRequest.addListener( showPageAction );
// Send a request to contentscript, which will open the new tab
chrome.pageAction.onClicked.addListener( function( tab ) {
chrome.tabs.sendRequest(, {} );