FIX: If there's no `window.opener` use the localStorage method for login
This commit is contained in:
parent
cf574bc155
commit
f7c303c82e
|
@ -26,7 +26,7 @@
|
|||
|
||||
// On facebook browser, just redirect and don't close
|
||||
var ua = navigator.userAgent || navigator.vendor || window.opera;
|
||||
if ((ua.indexOf("FBAN") > -1) || (ua.indexOf("FBAV") > -1)) {
|
||||
if (!window.opener) {
|
||||
localStorage.setItem('lastAuthResult', JSON.stringify(authResult));
|
||||
window.location.href = '<%= Discourse.base_url.html_safe %>?authComplete=true';
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue