mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Log errors authenticating with facebook
This commit is contained in:
parent
3b9b492ea6
commit
33a418d537
1 changed files with 6 additions and 1 deletions
|
@ -5,7 +5,12 @@ export default {
|
||||||
if (window.location.search.indexOf('authComplete=true') !== -1) {
|
if (window.location.search.indexOf('authComplete=true') !== -1) {
|
||||||
const lastAuthResult = localStorage.getItem('lastAuthResult');
|
const lastAuthResult = localStorage.getItem('lastAuthResult');
|
||||||
if (lastAuthResult) {
|
if (lastAuthResult) {
|
||||||
Discourse.authenticationComplete(JSON.parse(lastAuthResult));
|
try {
|
||||||
|
Discourse.authenticationComplete(JSON.parse(lastAuthResult));
|
||||||
|
} catch(e) {
|
||||||
|
document.write(`<p>lastAuthResult: ${lastAuthResult}</p>`);
|
||||||
|
document.write(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue