mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +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();
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user