aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/main.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/main.ts b/js/main.ts
index e8c2cfb..7e0c8a1 100644
--- a/js/main.ts
+++ b/js/main.ts
@@ -92,7 +92,8 @@ const settings = new KeyValueStore({
92})(); 92})();
93 93
94(() => { 94(() => {
95 const contentEl = document.getElementsByClassName('content')[0]; 95 const wrapEl = document.getElementsByClassName('wrap')[0];
96 const contentEl = wrapEl.getElementsByClassName('content')[0];
96 97
97 // 98 //
98 99
@@ -146,9 +147,9 @@ const settings = new KeyValueStore({
146 const settingWordWrapValueEl = settingWordWrapEl.getElementsByClassName('setting__value')[0]; 147 const settingWordWrapValueEl = settingWordWrapEl.getElementsByClassName('setting__value')[0];
147 const settingWordWrapCallback = (value: boolean) => { 148 const settingWordWrapCallback = (value: boolean) => {
148 if (value) { 149 if (value) {
149 contentEl.classList.add("content--wrap"); 150 wrapEl.classList.add("wrap--word-wrap");
150 } else { 151 } else {
151 contentEl.classList.remove("content--wrap"); 152 wrapEl.classList.remove("wrap--word-wrap");
152 } 153 }
153 154
154 settingWordWrapValueEl.textContent = value ? '[yes]' : '[no]'; 155 settingWordWrapValueEl.textContent = value ? '[yes]' : '[no]';