Skip to content

Commit

Permalink
Revert "[fix] Added guard to loading PDF viewer"
Browse files Browse the repository at this point in the history
This reverts commit 184d650 which
doesn't fix anything but suppresses messages about the error that is
actually occurring
  • Loading branch information
boblail committed May 14, 2013
1 parent fcec630 commit f6b7e64
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/helpers/pdfjs/viewer_helper.rb
Expand Up @@ -177,10 +177,7 @@ def pdf_viewer(filename, options={})
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
var PDFView = PDFView || {}
if (PDFView.open) {
PDFView.open(#{filename.to_json});
}
PDFView.open(#{filename.to_json});
}, true);
</script>
HTML
Expand Down

0 comments on commit f6b7e64

Please sign in to comment.