possible fix for safari
This commit is contained in:
parent
6e4f16275d
commit
2a54099187
@ -55,10 +55,14 @@
|
||||
var xhttp = new XMLHttpRequest();
|
||||
xhttp.onreadystatechange = function () {
|
||||
if (this.readyState === 4 && this.status === 200) {
|
||||
window.open(this.responseText);
|
||||
$('#modal_recipe').modal('hide');
|
||||
//link.attr("href", this.responseText);
|
||||
//link.show();
|
||||
if (navigator.userAgent.toLowerCase().indexOf('safari/') > -1){
|
||||
link.attr("href", this.responseText);
|
||||
link.show();
|
||||
}else{
|
||||
window.open(this.responseText);
|
||||
$('#modal_recipe').modal('hide');
|
||||
}
|
||||
|
||||
$('#div_loader').hide();
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user