mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
feat: enhance extension injection page effect
This commit is contained in:
@@ -22,18 +22,23 @@ if (isFirefox) {
|
||||
isFirstScriptExecute = false
|
||||
})
|
||||
window.onload = () => {
|
||||
document.documentElement.style.opacity = '1'
|
||||
nextTick(() => {
|
||||
setTimeout(() => {
|
||||
document.documentElement.style.opacity = '1'
|
||||
}, 1000)
|
||||
})
|
||||
}
|
||||
}
|
||||
else {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
injectApp()
|
||||
})
|
||||
|
||||
window.onload = () => {
|
||||
document.documentElement.style.opacity = '1'
|
||||
}
|
||||
// window.onload = () => {}
|
||||
nextTick(() => {
|
||||
setTimeout(() => {
|
||||
document.documentElement.style.opacity = '1'
|
||||
}, 1000)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
function injectApp() {
|
||||
|
||||
Reference in New Issue
Block a user