string literal is not instanceof String
JavaScript is dumb.
This commit is contained in:
@@ -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, '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user