Merge pull request #3516 from Rob--W/crx-dont-parse-querystring

[CRX] Get pdf name from URL instead of query string
This commit is contained in:
Brendan Dahl 2013-07-29 10:22:14 -07:00
commit 81308d153d

View File

@ -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)