mirror of https://github.com/node-red/node-red.git
Merge pull request #2610 from node-red-hitachi/fix-charAt-error-on-undefined
Fix char at error on undefined when opening websocket-listnerpull/2615/head
commit
b5800205c4
|
|
@ -148,10 +148,12 @@
|
|||
if (root.slice(-1) != "/") {
|
||||
root = root+"/";
|
||||
}
|
||||
if (this.path.charAt(0) == "/") {
|
||||
root += this.path.slice(1);
|
||||
} else {
|
||||
root += this.path;
|
||||
if (this.path) {
|
||||
if (this.path.charAt(0) == "/") {
|
||||
root += this.path.slice(1);
|
||||
} else {
|
||||
root += this.path;
|
||||
}
|
||||
}
|
||||
return root;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue