mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Log the error when we can't get storage access
This is quite useful when debugging why a session isn't working properly.
This commit is contained in:
parent
28b686dae7
commit
a85d2c96d6
@ -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