pdf.js/extensions
Jonas Jenwald 7548dc5ea2 Only include the renderer-preference in builds where SVGGraphics is defined
After PR 13117 it's now (finally) possible for *different* build targets to specify individual options/preferences, and we can utilize that to only expose the `renderer`-preference in builds where `SVGGraphics` is actually defined.
Note that for e.g. `MOZCENTRAL`-builds, trying to enable SVG-rendering will throw immediately and the preference thus doesn't make sense to include there.

Also, update the dummy `SVGGraphics` to use a class, tweak the `PDFJSDev`-check in `src/display/svg.js` to agree fully with the option/preference, and remove an unnecessary `eslint-disable`.
2021-05-10 12:03:53 +02:00
..
chromium Only include the renderer-preference in builds where SVGGraphics is defined 2021-05-10 12:03:53 +02:00
firefox Re-factor the default preferences generation to support build targets (PR 10548) 2021-03-20 11:50:48 +01:00