[CRX] Get pdf name from URL instead of querystring
This commit is contained in:
parent
c682c25bcf
commit
b2b2e85ba2
@ -2199,12 +2199,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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user