support skynet

This commit is contained in:
2020-02-04 19:37:46 +01:00
parent aea57286d9
commit 3ebf9785da
20 changed files with 852 additions and 611 deletions

View File

@@ -1,13 +1,12 @@
function PDFViewer(viewer, file) {
this.viewer = viewer;
this.file = file;
this.viewer = viewer
this.file = 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="+apiEndpoint+"/file/"+file.id;
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
}
PDFViewer.prototype.render = function(parent) {
parent.appendChild(this.container);
parent.appendChild(this.container)
}