1
0
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:
nobody
2020-06-21 08:18:18 +02:00
parent 9142b5b258
commit f283cae79a
4 changed files with 5 additions and 7 deletions

View File

@@ -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;
}