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
@ -63,17 +63,9 @@ module.exports = {
|
|||||||
for (let style of ['sans', 'serif', 'mono', 'code', 'quote', 'headings']) {
|
for (let style of ['sans', 'serif', 'mono', 'code', 'quote', 'headings']) {
|
||||||
if (!store()[style]) continue;
|
if (!store()[style]) continue;
|
||||||
|
|
||||||
if (style == 'headings') {
|
document
|
||||||
for (let heading of ['heading1', 'heading2', 'heading3']) {
|
.querySelector('.notion-app-inner')
|
||||||
document
|
.style.setProperty(`--theme--font_${style}`, store()[style]);
|
||||||
.querySelector('.notion-app-inner')
|
|
||||||
.style.setProperty(`--theme--font_${heading}`, store()[style]);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
document
|
|
||||||
.querySelector('.notion-app-inner')
|
|
||||||
.style.setProperty(`--theme--font_${style}`, store()[style]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user