update pdf viewer and remove CORS check

This commit is contained in:
2020-02-04 22:29:48 +01:00
parent 3ebf9785da
commit 754fcb7f21
72 changed files with 1507 additions and 79890 deletions

View File

@@ -5,7 +5,7 @@ function PDFViewer(viewer, file) {
this.container = document.createElement("iframe")
this.container.classList = "image-container"
this.container.style.border = "none"
this.container.src = "/res/misc/pdf-viewer/web/viewer.html?file="+this.file.get_href
this.container.src = "/res/misc/pdf-viewer/web/viewer.html?file="+encodeURIComponent(this.file.get_href)
}
PDFViewer.prototype.render = function(parent) {
parent.appendChild(this.container)