We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39590dc commit 325275eCopy full SHA for 325275e
web_src/js/features/comp/ComboMarkdownEditor.js
@@ -79,7 +79,7 @@ class ComboMarkdownEditor {
79
e.preventDefault();
80
const enabled = localStorage?.getItem('editor-monospace') !== 'true';
81
localStorage.setItem('editor-monospace', String(enabled));
82
- this.textarea.classList[enabled ? 'add' : 'remove']('gt-mono');
+ this.textarea.classList.toggle('gt-mono', enabled);
83
const text = monospaceButton.getAttribute(enabled ? 'data-disable-text' : 'data-enable-text');
84
monospaceButton.setAttribute('data-tooltip-content', text);
85
monospaceButton.setAttribute('aria-checked', String(enabled));
0 commit comments