/*There will eventually be a list of urls in a database for the extension to check through*/ var url = "https://www.cadbury.co.uk/"; /* Listen for external messages (messages from web-pages) */ chrome.runtime.onMessageExternal.addListener(function(url, sender) { if (sender.url == url) { chrome.browserAction.setIcon({ path: "green.png" }); } else { chrome.browserAction.setIcon({ path: "white.png" }); } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)