mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Various improvements in the code
This commit is contained in:
@@ -217,11 +217,9 @@ options._onOptionChanged = function ({target}) {
|
||||
optionKey = target.getAttribute('data-option');
|
||||
optionType = target.getAttribute('type');
|
||||
|
||||
switch (optionType) {
|
||||
case 'checkbox':
|
||||
if (optionType === 'checkbox') {
|
||||
optionValue = target.checked;
|
||||
break;
|
||||
default:
|
||||
} else {
|
||||
optionValue = target.value;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user