mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-12 05:48:25 -04:00
Do not switch to darkReader mode if appType is UWP
Former-commit-id: 5adc7c4486f96d3381b499662a72921e372f541e
This commit is contained in:
parent
af13c1acb0
commit
a31cb91e70
@ -2816,7 +2816,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'cache', 'images
|
|||||||
if (params.allowHTMLExtraction) document.getElementById('allowHTMLExtractionCheck').click();
|
if (params.allowHTMLExtraction) document.getElementById('allowHTMLExtractionCheck').click();
|
||||||
// Set defaults that allow for greatest compabitibility with Zimit ZIM types
|
// Set defaults that allow for greatest compabitibility with Zimit ZIM types
|
||||||
if (params.zimType === 'zimit') {
|
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();
|
document.getElementById('cssWikiDarkThemeDarkReaderCheck').click();
|
||||||
}
|
}
|
||||||
if (!params.windowOpener) {
|
if (!params.windowOpener) {
|
||||||
@ -3194,7 +3194,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'cache', 'images
|
|||||||
if (params.allowHTMLExtraction) document.getElementById('allowHTMLExtractionCheck').click();
|
if (params.allowHTMLExtraction) document.getElementById('allowHTMLExtractionCheck').click();
|
||||||
// Set defaults that allow for greatest compabitibility with Zimit ZIM types
|
// Set defaults that allow for greatest compabitibility with Zimit ZIM types
|
||||||
if (params.zimType === 'zimit') {
|
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();
|
document.getElementById('cssWikiDarkThemeDarkReaderCheck').click();
|
||||||
}
|
}
|
||||||
if (!params.windowOpener) {
|
if (!params.windowOpener) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user