mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
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:
commit
81308d153d
1 changed files with 3 additions and 3 deletions
|
@ -2200,12 +2200,12 @@ var DocumentOutlineView = function documentOutlineView(outline) {
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function webViewerLoad(evt) {
|
document.addEventListener('DOMContentLoaded', function webViewerLoad(evt) {
|
||||||
PDFView.initialize();
|
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;
|
var file = params.file || DEFAULT_URL;
|
||||||
//#else
|
//#else
|
||||||
//var file = window.location.toString()
|
//var file = window.location.href.split('#')[0];
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
//#if !(FIREFOX || MOZCENTRAL)
|
//#if !(FIREFOX || MOZCENTRAL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue