Fix name prettify
This commit is contained in:
parent
86134ba72f
commit
34b729440e
|
@ -32,5 +32,7 @@ function prettify(host) {
|
|||
}
|
||||
|
||||
function capitalize(str) {
|
||||
return str.charAt(0).toUpperCase() + str.slice(1);
|
||||
if (typeof str === "string") {
|
||||
return str.charAt(0).toUpperCase() + str.slice(1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue