forked from mystiq/hydrogen-web
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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue