This commit is contained in:
Skylar Grant 2024-09-12 15:42:38 -04:00
parent 7cc0c363ff
commit 4d17f80c00

View File

@ -100,7 +100,8 @@
.then(response => { .then(response => {
const pdfViewer = document.getElementById('pdfViewer'); const pdfViewer = document.getElementById('pdfViewer');
pdfViewer.innerHTML = ''; // Clear any previous content pdfViewer.innerHTML = ''; // Clear any previous content
console.log('Emptied PDF Viewer');
if (response.ok) { if (response.ok) {
// If the PDF exists, reload the iframe // If the PDF exists, reload the iframe
const iframe = document.createElement('iframe'); const iframe = document.createElement('iframe');