Merge pull request from CloudHill/master

Font chooser bug fix
This commit is contained in:
Tom 2020-09-20 18:52:34 +10:00 committed by GitHub
commit 9638a5765d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ module.exports = {
if (!document.querySelector('.notion-app-inner')) return;
clearInterval(attempt_interval);
for (let style of ['sans', 'serif', 'mono', 'code']) {
if (!store()[style]) return;
if (!store()[style]) continue;
document
.querySelector('.notion-app-inner')
.style.setProperty(`--theme--font_${style}`, store()[style]);