core-api: fix check to determine whether popup was closed or the messaging was misconfigured

This commit is contained in:
Patrik Oldsberg
2021-01-28 19:03:26 +01:00
parent e1e650e12a
commit a688274209
+1 -1
View File
@@ -122,7 +122,7 @@ export function showLoginPopup(options: LoginPopupOptions): Promise<any> {
const intervalId = setInterval(() => {
if (popup.closed) {
const errMessage = `Login failed, ${
targetOrigin !== window.location.origin
targetOrigin && targetOrigin !== window.location.origin
? `Incorrect app origin, expected ${targetOrigin}`
: 'popup was closed'
}`;