Commit 62a7ed9e9f40e4074cdf4a0c74cb32327bb5abdd
font-size: don't set empty font-size when using default
Matt McKegg committed on 12/15/2017, 3:43:04 AMParent: 973b79e581dbc98d1e008cb5cbdf69714b168342
Files changed
main-window.js | changed |
main-window.js | ||
---|---|---|
@@ -81,10 +81,12 @@ | ||
81 | 81 … | ) |
82 | 82 … | |
83 | 83 … | document.head.appendChild( |
84 | 84 … | h('style', { |
85 | - innerHTML: computed(api.settings.obs.get('patchwork.fontSize', document.documentElement.style.fontSize), size => { | |
86 | - return 'html, body {font-size: ' + size + ';}' | |
85 … | + innerHTML: computed(api.settings.obs.get('patchwork.fontSize'), size => { | |
86 … | + if (size) { | |
87 … | + return 'html, body {font-size: ' + size + ';}' | |
88 … | + } | |
87 | 89 … | }) |
88 | 90 … | }) |
89 | 91 … | ) |
90 | 92 … |
Built with git-ssb-web