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
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Reference in a new issue