mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-08-03 19:38:36 -04:00
Catch uncaught file verification error
This commit is contained in:
parent
589c4bc39a
commit
724392f750
@ -1122,6 +1122,9 @@ function getNativeFSHandle (callback) {
|
||||
searchForArchivesInPreferencesOrStorage();
|
||||
}
|
||||
}
|
||||
}).catch(function (err) {
|
||||
uiUtil.systemAlert('We could not verify permission for the requested file handle. Please try picking your archive again.', 'Verification failure!');
|
||||
console.error(err);
|
||||
});
|
||||
} else {
|
||||
console.warn('No file or folder handle was previously stored in indexedDB');
|
||||
|
Loading…
x
Reference in New Issue
Block a user