in my background.js I am using the following code to to have my pageAction extension show up on Amazon.com
function checkForValidUrl(tabId, changeInfo, tab) {
if (tab.url.indexOf('amazon.com') > -1) {
chrome.pageAction.show(tabId)
chrome.pageAction.onClicked.addListener(function(tab) {
chrome.tabs.executeScript(tab.id, {file: "bookmarklet.js"})
});
}
};
chrome.tabs.onUpdated.addListener(checkForValidUrl);
How would I changed the code so that the extesion will show up on both amazon.com and google.com pages?
Thanks.