Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
Fix error on authentication failure
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Oct 15, 2016
1 parent 8bf9b11 commit be6f216
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export default class Authentication {
callback(token);
if (authWindow) {
authWindow.close();
authWindow = null;
}
});
}
Expand All @@ -133,10 +134,6 @@ export default class Authentication {
}
});

authWindow.on('closed', function() {
authWindow = null;
});

if (oldWindow) {
oldWindow.close();
}
Expand Down

0 comments on commit be6f216

Please sign in to comment.