Firefox Extension - onPopupClose event?

后端 未结 1 1577
天命终不由人
天命终不由人 2021-01-15 05:23

I have popup in which I need to update the data inside it in reactively. What function or event is needed to track when a popup closes?

Currently my code structure i

1条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-15 06:02

    Unfortunately I did not see that unload is defined on window and not document. Simply changing the document.addEventListener("unload" to window.addEventListener("unload" fixes the problem.

    0 讨论(0)
提交回复
热议问题