Firefox Extension: Excecute action when user closes the browser
Posted
by Agustin
on Stack Overflow
See other posts from Stack Overflow
or by Agustin
Published on 2010-04-22T17:20:05Z
Indexed on
2010/04/22
17:23 UTC
Read the original article
Hit count: 283
firefox-extension
I have an extension with a sidebar, when the user close the sidebar a method is called. I need to diference when the user close the sidebar than when he closes the browser.
pseudo code:
if (userClosedBrowser){
//do something
}else if(userClosedSidebar){
//do something else
}
© Stack Overflow or respective owner