feat: continuously try to show external window

This commit is contained in:
Xmader 2020-11-20 10:18:50 -05:00
parent d7e2a39775
commit 0832c9484d
No known key found for this signature in database
GPG key ID: A20B97FB9EB730E4

View file

@ -120,6 +120,13 @@ export class BtnList {
const observer = new MutationObserver(() => {
// check if the buttons are still in document when dom updates
if (!document.contains(el)) {
try {
this.getBtnParent()
} catch {
observer.disconnect()
this.commit(BtnListMode.ExtWindow)
}
// re-commit
// performance issue?
el = this._commit()