From 832bfcd043a1269b77e73c4358b0e1d967edab16 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Sun, 31 Mar 2024 16:27:01 +0100 Subject: [PATCH] With FSA persistent permissions go straight to article view #573 (#581) --- www/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/js/app.js b/www/js/app.js index 64e67dff..72960e03 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -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();