!
This commit is contained in:
parent
69d288eb26
commit
e606dc060c
@ -145,7 +145,6 @@
|
||||
throw new Error('Failed to send print request');
|
||||
}
|
||||
})
|
||||
.then(message => alert(message))
|
||||
.catch(error => alert('Error: ' + error));
|
||||
setTimeout(loadPDF, 100);
|
||||
});
|
||||
@ -193,7 +192,6 @@
|
||||
throw new Error('Failed to send print request');
|
||||
}
|
||||
})
|
||||
.then(message => alert(message))
|
||||
.catch(error => alert('Error: ' + error));
|
||||
setTimeout(loadPDF, 100);
|
||||
});
|
||||
@ -211,14 +209,6 @@
|
||||
password: password
|
||||
}),
|
||||
})
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
return response.text(); // or .json() if your server returns JSON
|
||||
} else {
|
||||
throw new Error('Failed to send print request');
|
||||
}
|
||||
})
|
||||
.then(message => alert(message))
|
||||
.catch(error => alert('Error: ' + error));
|
||||
setTimeout(loadPDF, 100);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user