'chrome.windows.onRemoved' 和 'chrome.app.windows.onClosed' 之间有什么区别吗

is there any difference 'between 'chrome.windows.onRemoved' and 'chrome.app.windows.onClosed'

我正在编程 chrome 扩展程序而不是 chrome 应用程序。

我想在用户关闭浏览器时捕捉事件。所以我找到了两个听众,但我不明白每个 api.

之间有什么区别

chrome.windows.onRemoved

'chrome.app.windows.onClosed

这个问题有什么解决办法吗?

chrome.app.window.onClosed 用于 chrome apps,当 window 关闭时触发。

chrome.windows.onRemoved 用于 chrome 扩展 ,当 window 被移除(关闭)时触发。