Hello,
This is my manifest.json file
{
"name": "My First Extension",
"version": "1.0",
"description": "The first extension that I made.",
"background_page": "background.html",
"browser_action":
{
"default_icon": "icon.png"
},
"permissions" : [
"tabs"
]
}
This is the background.html
<html>
<head>
<script>
//Supposed to Called when the user clicks on the browser action icon.
chrome.browserAction.onClicked.addListener(function(tab)
{
console.log('I am clicked');
}
);
</script>
</head>
</html>
i opened the java script console in chrome and then clicked on the browser action icon but nothing was written on the console.
I believe the event handler is not getting called or not getting registered.
Please advise
Thanks
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.