Close event for chrome.app.window

后端 未结 2 1040
失恋的感觉
失恋的感觉 2020-12-09 06:25

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

2条回答
  •  醉梦人生
    2020-12-09 07:02

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

提交回复
热议问题