Skip to content

Commit

Permalink
Replace a var with a const since its value won't be modified furt…
Browse files Browse the repository at this point in the history
…her on
  • Loading branch information
flying7eleven committed Mar 13, 2023
1 parent c94f089 commit e7617de
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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 {
Expand Down

0 comments on commit e7617de

Please sign in to comment.