mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-19 19:19:03 +00:00
update font styling loop
This commit is contained in:
parent
b07e9863f5
commit
aab6b83eb2
@ -62,18 +62,10 @@ module.exports = {
|
||||
clearInterval(attempt_interval);
|
||||
for (let style of ['sans', 'serif', 'mono', 'code', 'quote', 'headings']) {
|
||||
if (!store()[style]) continue;
|
||||
|
||||
if (style == 'headings') {
|
||||
for (let heading of ['heading1', 'heading2', 'heading3']) {
|
||||
document
|
||||
.querySelector('.notion-app-inner')
|
||||
.style.setProperty(`--theme--font_${heading}`, store()[style]);
|
||||
}
|
||||
} else {
|
||||
document
|
||||
.querySelector('.notion-app-inner')
|
||||
.style.setProperty(`--theme--font_${style}`, store()[style]);
|
||||
}
|
||||
|
||||
document
|
||||
.querySelector('.notion-app-inner')
|
||||
.style.setProperty(`--theme--font_${style}`, store()[style]);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user