mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Log errors authenticating with facebook
This commit is contained in:
@@ -5,7 +5,12 @@ export default {
|
||||
if (window.location.search.indexOf('authComplete=true') !== -1) {
|
||||
const lastAuthResult = localStorage.getItem('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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user