diff --git a/sdk/src/platform/Platform.ts b/sdk/src/platform/Platform.ts index eb653e6..37d87c4 100644 --- a/sdk/src/platform/Platform.ts +++ b/sdk/src/platform/Platform.ts @@ -358,7 +358,7 @@ export default class Platform extends EventEmitter { height = 600, origin = window.location.origin, property = Constants.authResponseProperty, - target = '_self', + target = 'RingCentralLoginWindow', }: LoginWindowOptions): Promise { // clear check last timeout when user open loginWindow twice to avoid leak this._clearLoginWindowCheckTimeout(); @@ -378,7 +378,7 @@ export default class Platform extends EventEmitter { const win = window.open( url, - '_self', + 'RingCentralLoginWindow', target === '_blank' ? `scrollbars=yes, status=yes, width=${width}, height=${height}, left=${left}, top=${top}` : '',