I gave it a shot and the code seems to run if I close the extension by pressing the disable button of the extension in the extensions page, but the code doesn't run if I just close the browser. :(
On Dec 14, 6:23 pm, Marcos Aruj <[email protected]> wrote: > What you can try is the adding a listener to the uninit event of the > background script, but I haven't tried it. But may work. > ;) > > > > > > On Sun, Dec 13, 2009 at 5:22 PM, Tiby312 <[email protected]> wrote: > > Is there an event listener for when chrome is closed? I tried using > > the window close event, but it doesn't work for when you close the > > last window. So how would one get some code to execute at that moment? > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Chromium-extensions" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<chromium-extensions%2Bunsu > > [email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/chromium-extensions?hl=en. > > -- > Marcos Aruj Alvarez > Ingeniero de Software > ------------------------------- > [email protected] > ----- -- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.
