From a31cb91e70330cb4095a4dd35c9569aa94e27efc Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Sun, 13 Nov 2022 10:32:49 +0000 Subject: [PATCH] Do not switch to darkReader mode if appType is UWP Former-commit-id: 5adc7c4486f96d3381b499662a72921e372f541e --- www/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/app.js b/www/js/app.js index f748939f..1ff0e81f 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -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) {