1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

View File

@ -653,7 +653,7 @@
this.protocolVersion = 4; this.protocolVersion = 4;
} }
$("#node-config-input-cleansession").on("change", function() { $("#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) { if(useCleanSession) {
$("div.form-row.mqtt-persistence").hide(); $("div.form-row.mqtt-persistence").hide();
} else { } else {