I am developing an extension for Google Chrome. My background script, everytime, authorizes on a server that uses the XMPP API, and subscribes for a PubSub node. I need to u
This one works for me:
chrome.windows.onRemoved.addListener(function(windowId){ alert("!! Exiting the Browser !!"); });
It takes chrome.windows rather than chrome.tabs.
chrome.windows
chrome.tabs