Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Commit 18605a4

Browse files
committed
Merge pull request JamesRandall#30 from ciaranj/patch-1
Handle secure login on the '/' path
2 parents 3021a51 + 3e5639a commit 18605a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/angularJsOAuth2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
if (!parsedFromHash || previousState == service.token.state) {
112112
$rootScope.$broadcast('oauth2:authSuccess', service.token);
113113
var oauthRedirectRoute = $window.sessionStorage.getItem('oauthRedirectRoute');
114-
if (oauthRedirectRoute && oauthRedirectRoute != "null") {
114+
if (typeof(oauthRedirectRoute) !== 'undefined' && oauthRedirectRoute != "null") {
115115
$window.sessionStorage.setItem('oauthRedirectRoute', null);
116116
$location.path(oauthRedirectRoute);
117117
}

0 commit comments

Comments
 (0)