diff options
author | Feuerfuchs <git@feuerfuchs.dev> | 2020-05-18 18:02:20 +0200 |
---|---|---|
committer | Feuerfuchs <git@feuerfuchs.dev> | 2020-05-18 18:02:20 +0200 |
commit | e58fabd89f9708aaeb10e52f731759712034833f (patch) | |
tree | b845d41df1e91f01e4d66fb0a40fa9dc76c24dcd /js | |
parent | WIP: Refactoring (diff) | |
download | gopherproxy-e58fabd89f9708aaeb10e52f731759712034833f.tar.gz gopherproxy-e58fabd89f9708aaeb10e52f731759712034833f.tar.bz2 gopherproxy-e58fabd89f9708aaeb10e52f731759712034833f.zip |
WIP: Refactoring
Diffstat (limited to 'js')
-rw-r--r-- | js/main.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -128,9 +128,9 @@ const settings = new KeyValueStore({ | |||
128 | const settingMonospaceFontValueEl = settingMonospaceFontEl.getElementsByClassName('setting__value')[0]; | 128 | const settingMonospaceFontValueEl = settingMonospaceFontEl.getElementsByClassName('setting__value')[0]; |
129 | const settingMonospaceFontCallback = (value: boolean) => { | 129 | const settingMonospaceFontCallback = (value: boolean) => { |
130 | if (value) { | 130 | if (value) { |
131 | contentEl.classList.add("content--has-monospace-font"); | 131 | contentEl.classList.add("content--prefer-monospace"); |
132 | } else { | 132 | } else { |
133 | contentEl.classList.remove("content--has-monospace-font"); | 133 | contentEl.classList.remove("content--prefer-monospace"); |
134 | } | 134 | } |
135 | 135 | ||
136 | settingMonospaceFontValueEl.textContent = value ? '[yes]' : '[no]'; | 136 | settingMonospaceFontValueEl.textContent = value ? '[yes]' : '[no]'; |