?
This commit is contained in:
parent
7cc0c363ff
commit
4d17f80c00
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user