mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-11 13:18:21 -04:00
Better explanation of effect of manual image display
This commit is contained in:
parent
66ee372401
commit
b818e7579c
@ -1414,10 +1414,8 @@ document.getElementById('navButtonsPosCheck').addEventListener('change', functio
|
|||||||
uiUtil.systemAlert('This setting will be applied on next app launch');
|
uiUtil.systemAlert('This setting will be applied on next app launch');
|
||||||
});
|
});
|
||||||
$('input:checkbox[name=imageDisplayMode]').on('change', function (e) {
|
$('input:checkbox[name=imageDisplayMode]').on('change', function (e) {
|
||||||
if (params.contentInjectionMode === 'serviceworker' && !this.checked) {
|
if (!this.checked) {
|
||||||
uiUtil.systemAlert('Turning off image display is only guaranteed in JQuery mode. Some images may still display in ServiceWorker mode');
|
uiUtil.systemAlert('Please note that some images may still display if the ZIM type requires it (e.g. Zimit ZIMs, PhET, Gutenberg).');
|
||||||
// this.checked = true;
|
|
||||||
// return;
|
|
||||||
}
|
}
|
||||||
params.imageDisplay = this.checked;
|
params.imageDisplay = this.checked;
|
||||||
params.imageDisplayMode = this.checked ? 'progressive' : 'manual';
|
params.imageDisplayMode = this.checked ? 'progressive' : 'manual';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user