mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
prevent charAt call on websocket listener
This commit is contained in:
parent
81a4f42673
commit
7694349078
@ -148,11 +148,13 @@
|
|||||||
if (root.slice(-1) != "/") {
|
if (root.slice(-1) != "/") {
|
||||||
root = root+"/";
|
root = root+"/";
|
||||||
}
|
}
|
||||||
|
if (this.path) {
|
||||||
if (this.path.charAt(0) == "/") {
|
if (this.path.charAt(0) == "/") {
|
||||||
root += this.path.slice(1);
|
root += this.path.slice(1);
|
||||||
} else {
|
} else {
|
||||||
root += this.path;
|
root += this.path;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return root;
|
return root;
|
||||||
},
|
},
|
||||||
oneditprepare: function() {
|
oneditprepare: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user