fix location check in new window during signing in

This commit is contained in:
igoradamenko
2018-02-14 01:37:50 +02:00
parent 12cf3d7264
commit 537a04937d
+3 -1
View File
@@ -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);