fix: run script before the page is fully loaded

This commit is contained in:
Xmader 2020-12-28 05:13:37 -05:00
parent 003377e9ec
commit d50fb677b4
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ export const waitForSheetLoaded = (): Promise<void> => {
observer.disconnect()
}
})
observer.observe(document.body, { childList: true, subtree: true })
observer.observe(document, { childList: true, subtree: true })
})
} else {
return Promise.resolve()