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:
Will Hunt 2022-07-06 10:06:00 +01:00 committed by GitHub
parent 28b686dae7
commit a85d2c96d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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 {