Skip to content

Commit 2d5a583

Browse files
authored
Fix issue 277 II
Unify conditions used to clear hash
1 parent f8e6489 commit 2d5a583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/lib/src/oauth-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
17151715
if (options.onLoginError) {
17161716
options.onLoginError(parts);
17171717
}
1718-
if (this.clearHashAfterLogin) {
1718+
if (this.clearHashAfterLogin && !options.preventClearHashAfterLogin) {
17191719
location.hash = '';
17201720
}
17211721
}

0 commit comments

Comments
 (0)