I want to add Listener to the event which fires, everytime the browser icon is clicked. I have also a popup which comes up on click on this icon.
I tried chrome.browserAction.onClicked.addListener()
but didnot get it fired, later i saw that the doc says:
Fired when a browser action icon is clicked.
This event will not fire if the browser action has a popup.
so, I have popup, so this Listener doesnot work. What workaround can I do to attach Listener to icon in my case?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…