From 537a04937daab58eed42344d3f267727e983c54a Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Wed, 14 Feb 2018 01:37:50 +0200 Subject: [PATCH] fix location check in new window during signing in --- web/app/components/root/root.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/components/root/root.jsx b/web/app/components/root/root.jsx index 765d1576..2f428cff 100644 --- a/web/app/components/root/root.jsx +++ b/web/app/components/root/root.jsx @@ -61,9 +61,11 @@ export default class Root extends Component { const checkInterval = setInterval(() => { secondsPass += checkMsDelay; - if (newWindow.location.domain === location.domain || secondsPass > 30000) { + if (newWindow.location.origin === location.origin || secondsPass > 30000) { clearInterval(checkInterval); + secondsPass = 0; newWindow.close(); + api.getUser() .then(user => { store.set('user', user);