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();
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();
}