I\'m writing a Chrome extension that will redirect me to a URL when clicking on the browser action icon.
I\'m trying to use:
chrome.browserAction.onC
For those who already have added something like
"background": { "scripts": ["background.js"] }
and still gets Cannot read property 'onClicked' of undefined - just add
Cannot read property 'onClicked' of undefined
"browser_action": {}
into your manifest.json
edit: thanks @Pacerier for his comment, I've changed my answer