Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Guard
navigator
-object accesses in src/
-files (issue 15728)
There are environments that include *incomplete* polyfills for the `navigator`-object, which may thus cause the PDF.js library to break. Despite that clearly not being our fault, it may still result in bug reports filed against the PDF.js project; see e.g. 15728. Currently this even seem to affect *the latest* version of Node.js; see e.g. [here]. *Please note:* Thanks to the pre-processor none of these changes affect the Firefox PDF Viewer, however it does add "overhead" when working with and reviewing the affected code (which is why I'm not crazy about this).
- Loading branch information