Skip to content

Commit

Permalink
Update the JS/CSS files for the new Prettier/Stylelint versions
Browse files Browse the repository at this point in the history
  • Loading branch information
timvandermeij committed Jul 13, 2024
1 parent 49eba2f commit c77b97d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/core/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ class WorkerMessageHandler {
fileIds: xref.trailer.get("ID") || null,
startXRef: linearization
? startXRef
: xref.lastXRefStreamPos ?? startXRef,
: (xref.lastXRefStreamPos ?? startXRef),
filename,
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/display/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function getDocument(src = {}) {
const enableHWA = src.enableHWA === true;

// 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 =
typeof src.useSystemFonts === "boolean"
? src.useSystemFonts
Expand Down
2 changes: 1 addition & 1 deletion web/app_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ class AppOptions {
}
options[name] = defaultOnly
? defaultOption.value
: userOptions[name] ?? defaultOption.value;
: (userOptions[name] ?? defaultOption.value);
}
return options;
}
Expand Down
2 changes: 1 addition & 1 deletion web/l10n.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class L10n {
constructor({ lang, isRTL }, l10n = null) {
this.#lang = L10n.#fixupLangCode(lang);
this.#l10n = l10n;
this.#dir = isRTL ?? L10n.#isRTL(this.#lang) ? "rtl" : "ltr";
this.#dir = (isRTL ?? L10n.#isRTL(this.#lang)) ? "rtl" : "ltr";
}

_setL10n(l10n) {
Expand Down
3 changes: 2 additions & 1 deletion web/text_layer_builder.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@
}

::selection {
/* stylelint-disable declaration-block-no-duplicate-properties */
/*#if !MOZCENTRAL*/
background: rgba(0 0 255 / 0.25);
/*#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%);
}

Expand Down

0 comments on commit c77b97d

Please sign in to comment.