Wrap case statement to fix eslint issue
This commit is contained in:
parent
81484bbc37
commit
11d8687af7
|
@ -299,8 +299,7 @@ function acmeEventListener(event) {
|
|||
case 'tabSize':
|
||||
CodeMirror.setOption('indentUnit', Number(value));
|
||||
break;
|
||||
/* eslint-disable no-case-declarations */
|
||||
case 'theme':
|
||||
case 'theme': {
|
||||
const themeLink = document.getElementById('cm-theme');
|
||||
// use non-localized 'default' internally
|
||||
if (!value || value == 'default' || value == t('defaultTheme')) {
|
||||
|
@ -327,7 +326,7 @@ function acmeEventListener(event) {
|
|||
}, 100);
|
||||
})();
|
||||
return;
|
||||
/* eslint-enable no-case-declarations */
|
||||
}
|
||||
case 'autocompleteOnTyping':
|
||||
editors.forEach(cm => {
|
||||
const onOff = el.checked ? 'on' : 'off';
|
||||
|
|
Loading…
Reference in New Issue
Block a user