Update the JS/CSS files for the new Prettier/Stylelint versions

This commit is contained in:
Tim van der Meij 2024-07-13 16:20:22 +02:00
parent 49eba2f892
commit c77b97daff
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
5 changed files with 6 additions and 5 deletions

View file

@ -709,7 +709,7 @@ class WorkerMessageHandler {
fileIds: xref.trailer.get("ID") || null, fileIds: xref.trailer.get("ID") || null,
startXRef: linearization startXRef: linearization
? startXRef ? startXRef
: xref.lastXRefStreamPos ?? startXRef, : (xref.lastXRefStreamPos ?? startXRef),
filename, filename,
}; };
} }

View file

@ -294,7 +294,7 @@ function getDocument(src = {}) {
const enableHWA = src.enableHWA === true; const enableHWA = src.enableHWA === true;
// Parameters whose default values depend on other parameters. // Parameters whose default values depend on other parameters.
const length = rangeTransport ? rangeTransport.length : src.length ?? NaN; const length = rangeTransport ? rangeTransport.length : (src.length ?? NaN);
const useSystemFonts = const useSystemFonts =
typeof src.useSystemFonts === "boolean" typeof src.useSystemFonts === "boolean"
? src.useSystemFonts ? src.useSystemFonts

View file

@ -482,7 +482,7 @@ class AppOptions {
} }
options[name] = defaultOnly options[name] = defaultOnly
? defaultOption.value ? defaultOption.value
: userOptions[name] ?? defaultOption.value; : (userOptions[name] ?? defaultOption.value);
} }
return options; return options;
} }

View file

@ -32,7 +32,7 @@ class L10n {
constructor({ lang, isRTL }, l10n = null) { constructor({ lang, isRTL }, l10n = null) {
this.#lang = L10n.#fixupLangCode(lang); this.#lang = L10n.#fixupLangCode(lang);
this.#l10n = l10n; this.#l10n = l10n;
this.#dir = isRTL ?? L10n.#isRTL(this.#lang) ? "rtl" : "ltr"; this.#dir = (isRTL ?? L10n.#isRTL(this.#lang)) ? "rtl" : "ltr";
} }
_setL10n(l10n) { _setL10n(l10n) {

View file

@ -96,10 +96,11 @@
} }
::selection { ::selection {
/* stylelint-disable declaration-block-no-duplicate-properties */
/*#if !MOZCENTRAL*/ /*#if !MOZCENTRAL*/
background: rgba(0 0 255 / 0.25); background: rgba(0 0 255 / 0.25);
/*#endif*/ /*#endif*/
/* stylelint-disable-next-line declaration-block-no-duplicate-properties */ /* stylelint-enable declaration-block-no-duplicate-properties */
background: color-mix(in srgb, AccentColor, transparent 75%); background: color-mix(in srgb, AccentColor, transparent 75%);
} }