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:
parent
c94f0896e1
commit
e7617de1ee
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user