fix viewer

This commit is contained in:
Peter Maquiran
2024-03-13 14:37:02 +01:00
parent 7f2425ef1b
commit b06b81e53d
2 changed files with 37 additions and 39 deletions
-2
View File
@@ -1916,7 +1916,6 @@
PDFViewerApplication.open(new Uint8Array(xhr.response));
};
console.log({file})
xhr.open('GET', file);
xhr.responseType = 'arraybuffer';
xhr.send();
@@ -1924,7 +1923,6 @@
}
if (file) {
console.log({file})
PDFViewerApplication.open(new URLSearchParams(window.location.search).get('file'));
}
};