mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-09 04:06:27 -04:00
Catch uncaught file verification error
This commit is contained in:
parent
589c4bc39a
commit
724392f750
@ -1122,6 +1122,9 @@ function getNativeFSHandle (callback) {
|
|||||||
searchForArchivesInPreferencesOrStorage();
|
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 {
|
} else {
|
||||||
console.warn('No file or folder handle was previously stored in indexedDB');
|
console.warn('No file or folder handle was previously stored in indexedDB');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user