mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #3573 from Rob--W/crx-view-local-files
[CRX] Fixes to view local files again
This commit is contained in:
commit
bde863a8ac
2 changed files with 9 additions and 3 deletions
|
@ -2293,13 +2293,19 @@ var DocumentOutlineView = function documentOutlineView(outline) {
|
|||
document.addEventListener('DOMContentLoaded', function webViewerLoad(evt) {
|
||||
PDFView.initialize();
|
||||
|
||||
//#if !(FIREFOX || MOZCENTRAL || CHROME)
|
||||
//#if !(FIREFOX || MOZCENTRAL)
|
||||
var params = PDFView.parseQueryString(document.location.search.substring(1));
|
||||
var file = params.file || DEFAULT_URL;
|
||||
//#else
|
||||
//var file = window.location.href.split('#')[0];
|
||||
//#endif
|
||||
|
||||
//#if CHROME
|
||||
//if (location.protocol !== 'chrome-extension:') {
|
||||
// file = location.href.split('#')[0];
|
||||
//}
|
||||
//#endif
|
||||
|
||||
//#if !(FIREFOX || MOZCENTRAL || CHROME)
|
||||
var fileInput = document.createElement('input');
|
||||
fileInput.id = 'fileInput';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue