fix: run script before the page is fully loaded
This commit is contained in:
parent
003377e9ec
commit
d50fb677b4
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ export const waitForSheetLoaded = (): Promise<void> => {
|
||||||
observer.disconnect()
|
observer.disconnect()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
observer.observe(document.body, { childList: true, subtree: true })
|
observer.observe(document, { childList: true, subtree: true })
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
return Promise.resolve()
|
return Promise.resolve()
|
||||||
|
|
Loading…
Reference in a new issue