mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-09 04:06:27 -04:00
Simpliified noPackagedZIM test
This commit is contained in:
parent
e95fbe3d03
commit
ebbb5ea48c
@ -90,7 +90,7 @@
|
||||
<strong>Kiwix gives no guarantee as to the accuracy of information in the archives you access with this app.</strong>
|
||||
</p>
|
||||
</div>
|
||||
<p style="padding-top:10px;">
|
||||
<p id="noPackagedZIM" style="padding-top:10px;">
|
||||
<span><strong>IMPORTANT:</strong> To use this app, you <strong>must download an offline ZIM archive</strong> and store it on your device!</span>
|
||||
You can do this from the <b>Configuration page <span class="glyphicon glyphicon-wrench"></span></b>, or else see the
|
||||
<b>About page <span class="glyphicon glyphicon-info-sign"></span></b> for more information.
|
||||
|
@ -2512,6 +2512,10 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
if (result === false) console.log('Unable to delete old idxDB databases (this is normal in non-Chromium browsers');
|
||||
else console.log('Deleted ' + result + ' deprecated database(s).');
|
||||
});
|
||||
var noPackagedZIM = document.getElementById('noPackagedZIM');
|
||||
if (params.packagedFile && /medicine|wikivoyage|mdwiki/i.test(params.packagedFile)) {
|
||||
noPackagedZIM.style.display = 'none';
|
||||
}
|
||||
// On some platforms, bootstrap's jQuery functions have not been injected yet, so we have to run in a timeout
|
||||
setTimeout(function () {
|
||||
uiUtil.systemAlert(' ', '', false, null, null, null, 'myModal').then(function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user