From 4d17f80c00f8d0acbbb0f432a2d85622f2b03221 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 12 Sep 2024 15:42:38 -0400 Subject: [PATCH] ? --- mccs-it/thermal/public/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mccs-it/thermal/public/index.html b/mccs-it/thermal/public/index.html index 0f20d41..37fb7c4 100644 --- a/mccs-it/thermal/public/index.html +++ b/mccs-it/thermal/public/index.html @@ -100,7 +100,8 @@ .then(response => { const pdfViewer = document.getElementById('pdfViewer'); pdfViewer.innerHTML = ''; // Clear any previous content - + console.log('Emptied PDF Viewer'); + if (response.ok) { // If the PDF exists, reload the iframe const iframe = document.createElement('iframe');