Catch error when trying to persist storage
This happens on Firefox Mobile
This commit is contained in:
parent
693ffebbf7
commit
4443ad370e
@ -920,7 +920,14 @@ async function storagePersistInitialize() {
|
||||
if (persisted) {
|
||||
return;
|
||||
}
|
||||
if (await navigator.storage.persist()) {
|
||||
let result = false;
|
||||
try {
|
||||
result = await navigator.storage.persist();
|
||||
} catch (e) {
|
||||
// NOP
|
||||
}
|
||||
|
||||
if (result) {
|
||||
persisted = true;
|
||||
checkbox.checked = true;
|
||||
storageShowInfo();
|
||||
|
Loading…
Reference in New Issue
Block a user