Fix name prettify

This commit is contained in:
Mattias Erming 2014-08-25 03:14:28 -07:00
parent 86134ba72f
commit 34b729440e
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}
}