possible fix for safari

This commit is contained in:
vabene1111
2019-12-23 18:26:16 +01:00
parent 6e4f16275d
commit 2a54099187

View File

@ -55,10 +55,14 @@
var xhttp = new XMLHttpRequest(); var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () { xhttp.onreadystatechange = function () {
if (this.readyState === 4 && this.status === 200) { if (this.readyState === 4 && this.status === 200) {
if (navigator.userAgent.toLowerCase().indexOf('safari/') > -1){
link.attr("href", this.responseText);
link.show();
}else{
window.open(this.responseText); window.open(this.responseText);
$('#modal_recipe').modal('hide'); $('#modal_recipe').modal('hide');
//link.attr("href", this.responseText); }
//link.show();
$('#div_loader').hide(); $('#div_loader').hide();
} }