mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-13 22:36:24 -04:00
Only turn of DarkReader automatically if we are in UWP app
Former-commit-id: b51a705148d566de3437cd54dd47982d4bfb4c55
This commit is contained in:
parent
edd3381356
commit
dba9af1e87
@ -2830,7 +2830,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'cache', 'images
|
||||
params.noWarning = true;
|
||||
if (!params.manipulateImages) document.getElementById('manipulateImagesCheck').click();
|
||||
params.noWarning = false;
|
||||
if (params.cssTheme === 'darkReader') {
|
||||
if (params.cssTheme === 'darkReader' && /UWP/.test(params.appType)) {
|
||||
document.getElementById('cssWikiDarkThemeDarkReaderCheck').click();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user