mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-19 11:09:03 +00:00
update font styling loop
This commit is contained in:
parent
b07e9863f5
commit
aab6b83eb2
@ -63,19 +63,11 @@ module.exports = {
|
||||
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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user