diff --git a/web/viewer.js b/web/viewer.js index 4c090f1d6..fd10930eb 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -2200,12 +2200,12 @@ var DocumentOutlineView = function documentOutlineView(outline) { document.addEventListener('DOMContentLoaded', function webViewerLoad(evt) { PDFView.initialize(); - var params = PDFView.parseQueryString(document.location.search.substring(1)); -//#if !(FIREFOX || MOZCENTRAL) +//#if !(FIREFOX || MOZCENTRAL || CHROME) + var params = PDFView.parseQueryString(document.location.search.substring(1)); var file = params.file || DEFAULT_URL; //#else -//var file = window.location.toString() +//var file = window.location.href.split('#')[0]; //#endif //#if !(FIREFOX || MOZCENTRAL)