I am trying to test sample code for web extension for browsers. But, it doesn\'t work. I checked the console for Google Chrome and also for Firefox. It doesn\'t print anythi
Which console are you viewing in for the logs?
If you are viewing console on a tab, then that is the wrong place.
Open settings / Extensions or in a new tab type
chrome://extensions
Under your extension click on "background page" link which is where you can watch for logs
**Make sure Developer mode is checked