string literal is not instanceof String

JavaScript is dumb.
This commit is contained in:
Mike Morris
2015-03-19 17:07:52 -04:00
parent ffc937b184
commit d42076528e

View File

@@ -99,7 +99,7 @@ function rewriteLocalSchema(url) {
return url.map(function(str) {
return str.replace(regex, '');
});
} else if (url instanceof String) {
} else if (typeof url === "string") {
return url.replace(regex, '');
}
}