diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-06-14 20:55:36 +0200 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-06-14 20:55:36 +0200 |
commit | 4cc9bf09be7ddb5e576ccfd798e9bcc80bc8a953 (patch) | |
tree | de97b9108f2c2a55c8af783c9660f66b4da8f5d3 /apps/files_pdfviewer | |
parent | 12bfc551fba6d50256d58b060f1e38bcc489af2d (diff) | |
download | nextcloud-server-4cc9bf09be7ddb5e576ccfd798e9bcc80bc8a953.tar.gz nextcloud-server-4cc9bf09be7ddb5e576ccfd798e9bcc80bc8a953.zip |
fix javascript error
Diffstat (limited to 'apps/files_pdfviewer')
-rw-r--r-- | apps/files_pdfviewer/js/pdfjs/viewer.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_pdfviewer/js/pdfjs/viewer.js b/apps/files_pdfviewer/js/pdfjs/viewer.js index ff4f2452b60..8a568e6a749 100644 --- a/apps/files_pdfviewer/js/pdfjs/viewer.js +++ b/apps/files_pdfviewer/js/pdfjs/viewer.js @@ -1675,6 +1675,10 @@ function preDraw() { function updateViewarea() { if (!PDFView.initialized) return; + var container = document.getElementById('viewer'); + if (!container) + return; + var visiblePages = PDFView.getVisiblePages(); var pageToDraw; for (var i = 0; i < visiblePages.length; i++) { |