With FSA persistent permissions go straight to article view #573 (#581)

This commit is contained in:
Jaifroid 2024-03-31 16:27:01 +01:00 committed by GitHub
parent e797f17eda
commit 832bfcd043
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();