Do not switch to darkReader mode if appType is UWP

Former-commit-id: 5adc7c4486f96d3381b499662a72921e372f541e
This commit is contained in:
Jaifroid 2022-11-13 10:32:49 +00:00
parent af13c1acb0
commit a31cb91e70

View File

@ -2816,7 +2816,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'cache', 'images
if (params.allowHTMLExtraction) document.getElementById('allowHTMLExtractionCheck').click();
// Set defaults that allow for greatest compabitibility with Zimit ZIM types
if (params.zimType === 'zimit') {
if (params.cssTheme !== 'light' && params.cssTheme !== 'darkReader') {
if (params.cssTheme !== 'light' && params.cssTheme !== 'darkReader' && !/UWP/.test(params.appType)) {
document.getElementById('cssWikiDarkThemeDarkReaderCheck').click();
}
if (!params.windowOpener) {
@ -3194,7 +3194,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'cache', 'images
if (params.allowHTMLExtraction) document.getElementById('allowHTMLExtractionCheck').click();
// Set defaults that allow for greatest compabitibility with Zimit ZIM types
if (params.zimType === 'zimit') {
if (params.cssTheme !== 'light' && params.cssTheme !== 'darkReader') {
if (params.cssTheme !== 'light' && params.cssTheme !== 'darkReader' && !/UWP/.test(params.appType)) {
document.getElementById('cssWikiDarkThemeDarkReaderCheck').click();
}
if (!params.windowOpener) {