only show interface after theme has been applied

This commit is contained in:
Henry Jameson 2024-04-03 22:52:12 +03:00
commit 9806eea12e
5 changed files with 7 additions and 5 deletions

View file

@ -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()