mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
[Chromium extension] Remove the special handling of the "disableTelemetry" preference
With the changes made in the previous patch, we can now list "disableTelemetry" in the `AppOptions` only for the `CHROME`-builds and thus remove the special-casing in the `checkChromePreferencesFile` helper function.
This commit is contained in:
parent
b48dc06148
commit
18bc59eb34
2 changed files with 10 additions and 11 deletions
|
@ -271,6 +271,11 @@ if (
|
|||
kind: OptionKind.VIEWER,
|
||||
};
|
||||
} else if (PDFJSDev.test("CHROME")) {
|
||||
defaultOptions.disableTelemetry = {
|
||||
/** @type {boolean} */
|
||||
value: false,
|
||||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE,
|
||||
};
|
||||
defaultOptions.sandboxBundleSrc = {
|
||||
/** @type {string} */
|
||||
value: "../build/pdf.sandbox.js",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue