refactor($location): Simplify expression.
This commit is contained in:
+1
-1
@@ -912,7 +912,7 @@ function $LocationProvider() {
|
||||
// update $location when $browser url changes
|
||||
$browser.onUrlChange(function(newUrl, newState) {
|
||||
|
||||
if (isUndefined(stripBaseUrl(appBaseNoFile, newUrl))) {
|
||||
if (!startsWith(newUrl, appBaseNoFile)) {
|
||||
// If we are navigating outside of the app then force a reload
|
||||
$window.location.href = newUrl;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user