diff options
author | Robin Appelman <robin@icewind.nl> | 2022-04-07 16:08:38 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-04-13 15:21:12 +0300 |
commit | 59c4e28885e689c683d599ff97782f1ccc5731e1 (patch) | |
tree | 6f9162591b3ec8cf9c35f28258c70ec66a614acb /js | |
parent | c66683860324499a41dc8eb777da01d1d7e0de1d (diff) |
stricter types
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'js')
-rw-r--r-- | js/settings.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/settings.js b/js/settings.js index 3b4de2a..f25444c 100644 --- a/js/settings.js +++ b/js/settings.js @@ -208,7 +208,7 @@ $(document).ready(function() { av_mode_show_options(str, 'slow'); }); - let icapPresets = { + const icapPresets = { clamav: { service: 'avscan', header: 'X-Infection-Found', @@ -219,7 +219,7 @@ $(document).ready(function() { } } $('#av_icap_preset').on('change', function(e) { - var preset = e.target.value; + const preset = e.target.value; if (preset !== 'none') { $('#av_icap_service').val(icapPresets[preset].service); $('#av_icap_header').val(icapPresets[preset].header); |