mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
chore($location): drop bugus error
we can never get to this state, so dropping the error
This commit is contained in:
@@ -161,9 +161,6 @@ function LocationHashbangUrl(appBase, hashPrefix) {
|
||||
*/
|
||||
this.$$parse = function(url) {
|
||||
var withoutBaseUrl = beginsWith(appBase, url) || beginsWith(appBaseNoFile, url);
|
||||
if (!isString(withoutBaseUrl)) {
|
||||
throw $locationMinErr('istart', 'Invalid url "{0}", does not start with "{1}".', url, appBase);
|
||||
}
|
||||
var withoutHashUrl = withoutBaseUrl.charAt(0) == '#'
|
||||
? beginsWith(hashPrefix, withoutBaseUrl)
|
||||
: (this.$$html5)
|
||||
|
||||
Reference in New Issue
Block a user