aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorFeuerfuchs <git@feuerfuchs.dev>2020-05-18 18:02:20 +0200
committerFeuerfuchs <git@feuerfuchs.dev>2020-05-18 18:02:20 +0200
commite58fabd89f9708aaeb10e52f731759712034833f (patch)
treeb845d41df1e91f01e4d66fb0a40fa9dc76c24dcd /js
parentWIP: Refactoring (diff)
downloadgopherproxy-e58fabd89f9708aaeb10e52f731759712034833f.tar.gz
gopherproxy-e58fabd89f9708aaeb10e52f731759712034833f.tar.bz2
gopherproxy-e58fabd89f9708aaeb10e52f731759712034833f.zip
WIP: Refactoring
Diffstat (limited to 'js')
-rw-r--r--js/main.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/main.ts b/js/main.ts
index 2d11ea4..031e959 100644
--- a/js/main.ts
+++ b/js/main.ts
@@ -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]';