1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 07:08:08 +02:00
pdf.js/web
Jonas Jenwald 594e8c05ef Refactor the DownloadManager initialization in GENERIC/CHROME builds again (PR 8203 follow-up)
In the first commit in PR 8203, I changed how the `DownloadManager` was included/initialized in `GENERIC`/`CHROME` builds.
The change was prompted by the fact that you cannot have conditional `import`s with ES6 modules, and I wanted to avoid bundling the general `DownloadManager` into the various Firefox specific build targets.

What I completely missed though, is that the new code meant that `download_manager.js` will now be pulling in the *entire* viewer (through `app.js`).
This is a *really* stupid mistake on my part, since it causes the `dist/build/pdf_viewer.js` used with the viewer components to now include basically the entire default viewer.

The simplest solution that I could come up with, is to add a `genericcom.js` file (similar to the `firefoxcom.js`/`chromecom.js` files) which will be responsible for importing/initializing the `DownloadManager`.
2017-04-17 13:34:30 +02:00
..
images optimize png images using zopflipng 2016-07-10 17:49:16 +08:00
.gitignore Remove obselete file from .gitignore 2015-01-26 16:44:45 +01:00
annotation_layer_builder.css Annotations: implement support for line annotations 2017-04-12 23:05:25 +02:00
annotation_layer_builder.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
app.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
chrome-i18n-allow-access-to-file-urls.json Add translations of "Allow access to file URLs" 2015-08-14 18:59:55 +02:00
chromecom.js Refactor the DownloadManager initialization in GENERIC/CHROME builds again (PR 8203 follow-up) 2017-04-17 13:34:30 +02:00
compatibility.js Move compatibility code to the shared/compatibility.js. 2017-02-23 19:18:44 -06:00
compressed.tracemonkey-pldi-09.pdf Add Makefile. Move some files around to make building the website easier. 2011-07-05 10:53:57 -07:00
debugger.js Enable babel translation to enable ES module support. 2017-03-27 07:25:09 -05:00
default_preferences.json Allow automatic print rotation via enablePrintAutoRotate 2017-02-08 12:39:24 +01:00
dom_events.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
download_manager.js Refactor the DownloadManager initialization in GENERIC/CHROME builds again (PR 8203 follow-up) 2017-04-17 13:34:30 +02:00
firefox_print_service.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
firefoxcom.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
genericcom.js Refactor the DownloadManager initialization in GENERIC/CHROME builds again (PR 8203 follow-up) 2017-04-17 13:34:30 +02:00
grab_to_pan.js Convert the files in the /web folder to ES6 modules 2017-04-09 11:55:48 +02:00
hand_tool.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
interfaces.js Interactive forms: remove global PDFJS usage 2016-09-19 00:12:42 +02:00
overlay_manager.js Convert the files in the /web folder to ES6 modules 2017-04-09 11:55:48 +02:00
password_prompt.js Remove the password prompt input type hack 2017-04-16 15:17:23 +02:00
pdf_attachment_viewer.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
pdf_document_properties.js Convert the document properties to ES6 syntax 2017-04-16 16:42:57 +02:00
pdf_find_bar.js Convert the find bar to ES6 syntax 2017-04-16 23:12:11 +02:00
pdf_find_controller.js Use createPromiseCapability in /web files 2017-04-16 12:45:24 +02:00
pdf_history.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
pdf_link_service.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
pdf_outline_viewer.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
pdf_page_view.js Use createPromiseCapability in /web files 2017-04-16 12:45:24 +02:00
pdf_presentation_mode.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
pdf_print_service.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
pdf_rendering_queue.js Convert the files in the /web folder to ES6 modules 2017-04-09 11:55:48 +02:00
pdf_sidebar.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
pdf_thumbnail_view.js Use createPromiseCapability in /web files 2017-04-16 12:45:24 +02:00
pdf_thumbnail_viewer.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
pdf_viewer.component.js ES6 modules: remove UMD header validation 2017-03-04 21:43:25 +01:00
pdf_viewer.css Better components examples. 2016-04-28 13:30:03 -05:00
pdf_viewer.js Check if pageView.pdfPage exists in PDFViewer._ensurePdfPageLoaded, to avoid potentially calling PDFPageView.setPdfPage multiple times for the same page 2017-04-16 13:42:45 +02:00
pdfjs.js Merge pull request #8131 from timvandermeij/remove-umd-validation 2017-04-13 10:49:41 -05:00
preferences.js Convert the files in the /web folder to ES6 modules 2017-04-09 11:55:48 +02:00
secondary_toolbar.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
text_layer_builder.css Use default line height for the text layer 2015-12-02 23:00:12 +01:00
text_layer_builder.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
toolbar.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
ui_utils.js Change amd to cjs path in ES6 modules 2017-04-14 10:32:36 -05:00
view_history.js Convert the files in the /web folder to ES6 modules 2017-04-09 11:55:48 +02:00
viewer-snippet-chrome-extension.html Remove type="text/javascript" from script tags. 2014-05-13 02:41:01 +02:00
viewer-snippet-chrome-overlays.html Add translations of "Allow access to file URLs" 2015-08-14 18:59:55 +02:00
viewer-snippet-firefox-extension.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer-snippet-minified.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer-snippet.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer.css Remove unnecessary .toolbarButton.group CSS class 2017-03-10 13:49:24 +01:00
viewer.html Remove the password prompt input type hack 2017-04-16 15:17:23 +02:00
viewer.js Refactor the DownloadManager initialization in GENERIC/CHROME builds again (PR 8203 follow-up) 2017-04-17 13:34:30 +02:00