mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 22:34:44 +08:00
FIX: Safari on iOS 9 hangs after logging in
This commit is contained in:
@ -96,7 +96,14 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||||||
} else {
|
} else {
|
||||||
$hidden_login_form.find('input[name=redirect]').val(window.location.href);
|
$hidden_login_form.find('input[name=redirect]').val(window.location.href);
|
||||||
}
|
}
|
||||||
$hidden_login_form.submit();
|
|
||||||
|
if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g) && navigator.userAgent.match(/Safari/g)) {
|
||||||
|
// In case of Safari on iOS do not submit hidden login form
|
||||||
|
window.location.href = $hidden_login_form.find('input[name=redirect]').val();
|
||||||
|
} else {
|
||||||
|
$hidden_login_form.submit();
|
||||||
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}, function(e) {
|
}, function(e) {
|
||||||
|
Reference in New Issue
Block a user