mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
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:
commit
2a5e0302dc
@ -42,6 +42,7 @@ async function requestPersistedStorage(): Promise<boolean> {
|
||||
await glob.document.requestStorageAccess();
|
||||
return true;
|
||||
} catch (err) {
|
||||
console.warn("requestStorageAccess threw an error:", err);
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user