1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

For mozcentral use Firefox color theme instead of system theme.

See: https://bugzilla.mozilla.org/show_bug.cgi?id=1701691
This commit is contained in:
Brendan Dahl 2021-04-28 12:00:28 -07:00
parent d10da907da
commit 2c713f9cb5
2 changed files with 16 additions and 7 deletions

View file

@ -269,6 +269,12 @@ function preprocessCSS(mode, source, destination) {
content = expandImports(content, source);
if (mode === "mozcentral") {
content = removePrefixed(content, hasPrefixedMozcentral);
// In the mozcentral version the color theme should be based on the Firefox
// theme instead of the system theme.
content = content.replace(
"prefers-color-scheme",
"-moz-toolbar-prefers-color-scheme"
);
}
fs.writeFileSync(destination, content);
}