Skip to content

Commit 325275e

Browse files
silverwinddelvh
andcommitted
Update web_src/js/features/comp/ComboMarkdownEditor.js
Co-authored-by: delvh <[email protected]>
1 parent 39590dc commit 325275e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/comp/ComboMarkdownEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class ComboMarkdownEditor {
7979
e.preventDefault();
8080
const enabled = localStorage?.getItem('editor-monospace') !== 'true';
8181
localStorage.setItem('editor-monospace', String(enabled));
82-
this.textarea.classList[enabled ? 'add' : 'remove']('gt-mono');
82+
this.textarea.classList.toggle('gt-mono', enabled);
8383
const text = monospaceButton.getAttribute(enabled ? 'data-disable-text' : 'data-enable-text');
8484
monospaceButton.setAttribute('data-tooltip-content', text);
8585
monospaceButton.setAttribute('aria-checked', String(enabled));

0 commit comments

Comments
 (0)