fix zoom being applied with a delay
This commit is contained in:
parent
c179daaf80
commit
a626b37354
1 changed files with 6 additions and 1 deletions
|
|
@ -48,6 +48,10 @@ export const adoptStyleSheets = throttle(() => {
|
|||
} else {
|
||||
const holder = document.getElementById('custom-styles-holder')
|
||||
|
||||
for (let i = holder.cssRules.length - 1; i >= 0; --i) {
|
||||
holder.sheet.deleteRule(i)
|
||||
}
|
||||
|
||||
Object
|
||||
.values(stylesheets)
|
||||
.forEach(sheet => {
|
||||
|
|
@ -124,7 +128,8 @@ export const tryLoadCache = async () => {
|
|||
eagerStyles.ready = true
|
||||
lazyStyles.ready = true
|
||||
|
||||
adoptStyleSheets()
|
||||
// Don't do this, we need to wait until config adopts its styles first
|
||||
//adoptStyleSheets()
|
||||
|
||||
console.info(`Loaded theme from cache`)
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue