mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-09 12:19:46 -04:00
This commit is contained in:
parent
e797f17eda
commit
832bfcd043
@ -1119,7 +1119,7 @@ function getNativeFSHandle (callback) {
|
||||
if (callback) {
|
||||
callback(handle);
|
||||
} else {
|
||||
searchForArchivesInPreferencesOrStorage(true);
|
||||
searchForArchivesInPreferencesOrStorage();
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -3235,6 +3235,8 @@ if (storages !== null && storages.length > 0 ||
|
||||
if (params.useOPFS) {
|
||||
if (!params.storedFile) btnConfigure.click();
|
||||
loadOPFSDirectory();
|
||||
} else if (params.storedFile && navigator && navigator.storage && 'getDirectory' in navigator.storage) {
|
||||
getNativeFSHandle();
|
||||
} else {
|
||||
// We are in an app that cannot open files auotomatically, so populate archive list and show file pickers
|
||||
btnConfigure.click();
|
||||
|
Loading…
x
Reference in New Issue
Block a user