hotfix to utils.isRelativeUrl to handle null or undefined first argument

This commit is contained in:
Julian Lam
2017-01-11 14:33:51 -05:00
parent 7bbb05637c
commit 20d035bdac

View File

@@ -193,7 +193,7 @@
},
isRelativeUrl: function (url) {
var firstChar = url.slice(0, 1);
var firstChar = String(url || '').charAt(0);
return (firstChar === '.' || firstChar === '/');
},