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');