Close event for chrome.app.window

Stefania picture Stefania · Mar 27, 2013 · Viewed 10.9k times · Source

When a chrome app window is closed, is it possible to detect the event? and do an action before the window is closed?

Answer

Vincent Scheib picture Vincent Scheib · Mar 27, 2013

chrome.app.window.current().onClosed allows you to register an event listener for when a window is closed.