only show interface after theme has been applied
This commit is contained in:
parent
e8159164e3
commit
9806eea12e
5 changed files with 7 additions and 5 deletions
|
|
@ -88,9 +88,6 @@ export const generateTheme = async (input, callbacks) => {
|
|||
}
|
||||
|
||||
export const applyTheme = async (input) => {
|
||||
const body = document.body
|
||||
body.classList.add('hidden')
|
||||
|
||||
const styleSheet = new CSSStyleSheet()
|
||||
document.adoptedStyleSheets = [styleSheet]
|
||||
|
||||
|
|
@ -103,8 +100,6 @@ export const applyTheme = async (input) => {
|
|||
}
|
||||
)
|
||||
|
||||
body.classList.remove('hidden')
|
||||
|
||||
setTimeout(lazyProcessFunc, 0)
|
||||
|
||||
return Promise.resolve()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue