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);