Skip to content

Commit

Permalink
Fix issue 277 II
Browse files Browse the repository at this point in the history
Unify conditions used to clear hash
  • Loading branch information
tpeter1985 authored Nov 18, 2019
1 parent f8e6489 commit 2d5a583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/lib/src/oauth-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
if (options.onLoginError) {
options.onLoginError(parts);
}
if (this.clearHashAfterLogin) {
if (this.clearHashAfterLogin && !options.preventClearHashAfterLogin) {
location.hash = '';
}
}
Expand Down

0 comments on commit 2d5a583

Please sign in to comment.