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(() => {
|
const observer = new MutationObserver(() => {
|
||||||
// check if the buttons are still in document when dom updates
|
// check if the buttons are still in document when dom updates
|
||||||
if (!document.contains(el)) {
|
if (!document.contains(el)) {
|
||||||
|
try {
|
||||||
|
this.getBtnParent()
|
||||||
|
} catch {
|
||||||
|
observer.disconnect()
|
||||||
|
this.commit(BtnListMode.ExtWindow)
|
||||||
|
}
|
||||||
|
|
||||||
// re-commit
|
// re-commit
|
||||||
// performance issue?
|
// performance issue?
|
||||||
el = this._commit()
|
el = this._commit()
|
||||||
|
|
Loading…
Reference in a new issue