Skip to content

Commit

Permalink
Fixed Login Window
Browse files Browse the repository at this point in the history
  • Loading branch information
SushilMallRC committed Jul 8, 2024
1 parent e28ac84 commit 4dfbbd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/src/platform/Platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export default class Platform extends EventEmitter {
height = 600,
origin = window.location.origin,
property = Constants.authResponseProperty,
target = '_blank',
target = '_self',
}: LoginWindowOptions): Promise<LoginOptions> {
// clear check last timeout when user open loginWindow twice to avoid leak
this._clearLoginWindowCheckTimeout();
Expand All @@ -378,7 +378,7 @@ export default class Platform extends EventEmitter {

const win = window.open(
url,
'_blank',
'_self',
target === '_blank'
? `scrollbars=yes, status=yes, width=${width}, height=${height}, left=${left}, top=${top}`
: '',
Expand Down

0 comments on commit 4dfbbd8

Please sign in to comment.