mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: Allow authentication complete window to pop up
This commit is contained in:
parent
33a418d537
commit
28e3becf44
1 changed files with 1 additions and 6 deletions
|
@ -5,12 +5,7 @@ export default {
|
|||
if (window.location.search.indexOf('authComplete=true') !== -1) {
|
||||
const lastAuthResult = localStorage.getItem('lastAuthResult');
|
||||
if (lastAuthResult) {
|
||||
try {
|
||||
Discourse.authenticationComplete(JSON.parse(lastAuthResult));
|
||||
} catch(e) {
|
||||
document.write(`<p>lastAuthResult: ${lastAuthResult}</p>`);
|
||||
document.write(e);
|
||||
}
|
||||
Ember.run.next(() => Discourse.authenticationComplete(JSON.parse(lastAuthResult)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue