Merge pull request #785 from vector-im/hs/log-when-storage-access-fails

Log the error when we can't get storage access
This commit is contained in:
Bruno Windels 2022-07-29 09:47:58 +00:00 committed by GitHub
commit 2a5e0302dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,7 @@ async function requestPersistedStorage(): Promise<boolean> {
await glob.document.requestStorageAccess(); await glob.document.requestStorageAccess();
return true; return true;
} catch (err) { } catch (err) {
console.warn("requestStorageAccess threw an error:", err);
return false; return false;
} }
} else { } else {