feat: continuously try to show external window
This commit is contained in:
parent
d7e2a39775
commit
0832c9484d
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue