mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-16 07:46:58 -04:00
Add coloured background to alert user that appCache is bypassed
Former-commit-id: 15aebe1f7dd428c231a9ef98611a2beb2c983133 [formerly d0bcb699b85d8f9e2f216c6a2d7787d2c67ab171] [formerly 4c02fa9eb1aabb14b7614bab32d2fe3b02c52cd9] [formerly 3d756b4e881ce44c96140af8a7c4e25ad7e77374 [formerly 1564214c3243e615444db9b1a360a3e1dda22fdb [formerly ac10ca92a235d1ff534968baa258494af10c486a]]] Former-commit-id: 9b886b931710b9edb1d7521493d253cbcdec0b42 [formerly 9fb7be1a7f4324acf81bdc4eff584eed759dc0e3 [formerly a9f368e6f78e621eac40b5d7c3390007f91b9e4e]] Former-commit-id: 24d8e7e8f5e2bdbc3d28181cfced106709a0018f [formerly 2b8891c5643d7770224f7e482dac852f06f86df1] Former-commit-id: 7ee8d41466d46917a8c8676b4c833cf92033f53d
This commit is contained in:
parent
7dff2eed23
commit
cc869e57a5
@ -1543,6 +1543,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett
|
||||
document.getElementById('kiwixIcon').src = /wikivoyage/i.test(params.storedFile) ? "img/icons/wikivoyage-black-32.png" : /medicine/i.test(params.storedFile) ? "img/icons/wikimed-blue-32.png" : "img/icons/kiwix-blue-32.png";
|
||||
if (/wikivoyage/i.test(params.packagedFile)) document.getElementById('kiwixIconAbout').src = "img/icons/wikivoyage-90.png";
|
||||
}
|
||||
refreshCacheStatus();
|
||||
return value;
|
||||
}
|
||||
|
||||
@ -1882,6 +1883,12 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett
|
||||
else card.classList.add('panel-warning');
|
||||
});
|
||||
});
|
||||
var scrollbox = document.getElementById('scrollbox');
|
||||
if (params.appCache) {
|
||||
scrollbox.style.removeProperty('background');
|
||||
} else {
|
||||
scrollbox.style.background = cssUIThemeGetOrSet(params.cssUITheme, true) === 'dark' ? 'maroon' : 'mistyrose';
|
||||
}
|
||||
}
|
||||
|
||||
var keepAliveServiceWorkerHandle = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user