mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-08 19:57:46 -04:00
Fix bug where new PWA users cannot select archiv
Former-commit-id: cb77375827d4945684b01be3dbcfa30fb950815a [formerly 0fbc23b9998cea6e51b6eaf562b4bb91ad698765 [formerly cf5b98a4cafdee847a78a04859956374e8b067d9]] Former-commit-id: e5d3c787627338fc25e237e8309c7fe74ab75767 Former-commit-id: a522b865bfb29ac30793772f9996dda89a9409d4
This commit is contained in:
parent
fff4a6dc25
commit
6d0f389464
@ -810,11 +810,11 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'cook
|
||||
document.getElementById('archiveFiles').style.display = "none";
|
||||
document.getElementById('UWPInstructions').style.display = "none";
|
||||
document.getElementById('archivesFound').style.display = "none";
|
||||
document.getElementById('chooseArchiveFromLocalStorage').style.display = "block";
|
||||
document.getElementById('instructions').style.display = "block";
|
||||
document.getElementById('archiveFilesLegacy').style.display = "inline";
|
||||
document.getElementById('archiveFilesLegacy').addEventListener('change', setLocalArchiveFromFileSelect);
|
||||
}
|
||||
document.getElementById('chooseArchiveFromLocalStorage').style.display = "block";
|
||||
// If user had previously picked a file using Native FS, offer to re-open
|
||||
if (typeof window.showOpenFilePicker !== 'undefined' && !(params.pickedFile || params.pickedFolder)) {
|
||||
getNativeFSHandle();
|
||||
|
Loading…
x
Reference in New Issue
Block a user