Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_pdfviewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/files_pdfviewer-public.js')
-rw-r--r--js/files_pdfviewer-public.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/files_pdfviewer-public.js b/js/files_pdfviewer-public.js
index cfd8f11..cc992c5 100644
--- a/js/files_pdfviewer-public.js
+++ b/js/files_pdfviewer-public.js
@@ -41,5 +41,5 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-window.addEventListener("DOMContentLoaded",(function(){if(c()&&u&&"application/pdf"===u.value&&!a()){console.debug("Files_PDFViewer initialized for public page",{isPublicPage:c(),canDownload:Object(o.a)(),isSecureViewerAvailable:a()});var t=location.hash.split("page=")[1]||0,n=document.getElementById("files-public-content"),e=document.getElementById("sharingToken"),i=document.querySelector("#app-content > footer"),f=e.value,l=Object(r.generateUrl)("/s/{token}/download",{token:f}),s=Object(r.generateUrl)("/apps/files_pdfviewer/?file={downloadUrl}#page={page}",{downloadUrl:l,page:t}),p=document.createElement("iframe");p.src=s,p.style.height="100%",p.style.width="100%",p.style.position="absolute",n?(n.innerHTML="",n.appendChild(p),i.style.display="none"):console.error("Unable to inject the PDF Viewer")}}))}]);
-//# sourceMappingURL=files_pdfviewer-public.js.map?v=3fc0a1db24798f0df49e \ No newline at end of file
+window.addEventListener("DOMContentLoaded",(function(){if(console.debug("Files_PDFViewer initialized for public page",{isPublicPage:c(),canDownload:Object(o.a)(),isSecureViewerAvailable:a()}),c()&&u&&"application/pdf"===u.value&&!a()){var t=location.hash.split("page=")[1]||0,n=document.getElementById("files-public-content"),e=document.getElementById("sharingToken"),i=document.querySelector("#app-content > footer"),f=e.value,l=Object(r.generateUrl)("/s/{token}/download",{token:f}),s=Object(r.generateUrl)("/apps/files_pdfviewer/?file={downloadUrl}#page={page}",{downloadUrl:l,page:t}),p=document.createElement("iframe");p.src=s,p.style.height="100%",p.style.width="100%",p.style.position="absolute",n?(n.innerHTML="",n.appendChild(p),i.style.display="none"):console.error("Unable to inject the PDF Viewer")}}))}]);
+//# sourceMappingURL=files_pdfviewer-public.js.map?v=03ce5620648cf05e5494 \ No newline at end of file