Replace a `var` with a `const` since its value won't be modified further on

This commit is contained in:
Tim Janke 2023-03-13 13:22:51 +01:00
parent c94f0896e1
commit e7617de1ee
No known key found for this signature in database
GPG Key ID: 2178F60CC2AB5033
1 changed files with 1 additions and 1 deletions

View File

@ -653,7 +653,7 @@
this.protocolVersion = 4;
}
$("#node-config-input-cleansession").on("change", function() {
var useCleanSession = $("#node-config-input-cleansession").is(':checked');
const useCleanSession = $("#node-config-input-cleansession").is(':checked');
if(useCleanSession) {
$("div.form-row.mqtt-persistence").hide();
} else {