mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
fix: remove the loading time after style loading is successful
This commit is contained in:
@@ -127,9 +127,7 @@ function injectApp() {
|
||||
newStyleEl.setAttribute('href', browser.runtime.getURL('dist/contentScripts/style.css'))
|
||||
document.documentElement.appendChild(newStyleEl)
|
||||
newStyleEl.onload = () => {
|
||||
setTimeout(() => {
|
||||
document.documentElement.removeChild(beforeLoadedStyleEl)
|
||||
}, 500)
|
||||
document.documentElement.removeChild(beforeLoadedStyleEl)
|
||||
}
|
||||
|
||||
// inject svg icons
|
||||
|
||||
Reference in New Issue
Block a user