serve all files without flask

This commit is contained in:
j 2014-05-22 01:06:08 +02:00
commit f2221188ea
5 changed files with 18 additions and 56 deletions

View file

@ -4749,7 +4749,7 @@ document.addEventListener('DOMContentLoaded', function webViewerLoad(evt) {
PDFView.initialize();
var params = PDFView.parseQueryString(document.location.search.substring(1));
var file = params.file || document.location.pathname.replace(/\/reader\//, '/pdf');
var file = params.file || document.location.pathname.replace(/\/reader\//, '/pdf/');
var fileInput = document.createElement('input');