1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-24 17:18:07 +02:00
pdf.js/external
Jonas Jenwald a9ce4e8417 Stop exposing the URL polyfill in the global scope
This moves/exposes the `URL` polyfill similarily to the existing `ReadableStream` polyfill, rather than exposing it globally, to avoid interfering with any "outside" code.
Both the `URL` and `ReadableStream` polyfills are now exposed on the `pdfjsLib` object, such that they are accessible to the viewer components.
Furthermore, the `no-restricted-globals` ESLint rule is also enabled to prevent accidental usage of the native `URL`/`ReadableStream` implementations directly in the `src/` and `web/` folders; see also https://eslint.org/docs/rules/no-restricted-globals

Addresses the remaining TODO in https://github.com/mozilla/pdf.js/projects/6
2018-07-04 09:16:28 +02:00
..
bcmaps Removes external/cmaps; adds binary cmaps to the repo 2014-03-17 13:30:27 -05:00
builder Fix typos 2018-04-01 23:20:41 +02:00
cmapscompress Fix typos 2018-04-01 23:20:41 +02:00
dist Move the workerPort from the global PDFJS object and into GlobalWorkerOptions instead 2018-02-16 13:22:35 +01:00
importL10n Update translations 2018-06-30 20:36:17 +02:00
streams Added sendWithStream method in MessageHandler. 2017-06-07 21:05:27 +05:30
systemjs Fix the remaining cases of inconsistent spacing and trailing commas in objects, and enable the comma-dangle and object-curly-spacing ESLint rules 2017-06-03 23:35:37 +02:00
url Stop exposing the URL polyfill in the global scope 2018-07-04 09:16:28 +02:00
webL10n Fix typos 2018-04-01 23:20:41 +02:00
webpack Upgrade to Webpack 4 2018-06-02 20:28:36 +02:00
.eslintrc Enable the mozilla/use-includes-instead-of-indexOf ESLint rule globally 2018-02-10 23:24:50 +01:00
.gitignore Removes external/cmaps; adds binary cmaps to the repo 2014-03-17 13:30:27 -05:00