mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-11-30 16:37:18 +01:00
- Mention the internal viewer in the README, such that it's easier to find. - Implement a new `INTERNAL_VIEWER` define, such that it's easier to limit code to only the "internal-viewer" gulp target. - Only include the "GetRawData" message-handler when needed. Note that the `MessageHandler` [already throws](https://github.com/mozilla/pdf.js/blob/eb159abd6a053d98fd0dfe7976c08f8d09618a51/src/shared/message_handler.js#L121-L123) for any missing handler. - Move the various new helper functions from `src/core/document.js` and into their own file. The reasons for doing this are: - That file is already quite large and complex as-is, and these helper functions are slightly orthogonal to its main functionality. - Babel isn't able to remove all of the new code, and by moving this into a separate file we can guarantee that no extra code ends up in e.g. Firefox.