This commit is contained in:
Skylar Grant 2024-09-13 10:08:27 -04:00
parent 69d288eb26
commit e606dc060c
1 changed files with 0 additions and 10 deletions

View File

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