From e606dc060cac14ab07b34fd5704b14ad6a312142 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Fri, 13 Sep 2024 10:08:27 -0400 Subject: [PATCH] ! --- mccs-it/thermal/public/index.html | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/mccs-it/thermal/public/index.html b/mccs-it/thermal/public/index.html index 4940e13..cf47ec2 100644 --- a/mccs-it/thermal/public/index.html +++ b/mccs-it/thermal/public/index.html @@ -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); });