fall back, don't do both on FF

pull/21833/head
Bruno Windels 2020-03-25 12:07:11 +01:00
parent f6e9c32c48
commit 9a5f4d9b22
1 changed files with 1 additions and 3 deletions

View File

@ -118,9 +118,7 @@ export default async function sendBugReport(bugReportEndpoint, opts) {
try {
body.append("storageManager_persisted", await navigator.storage.persisted());
} catch (e) {}
}
// Safari
if (document.hasStorageAccess) {
} else if (document.hasStorageAccess) { // Safari
try {
body.append("storageManager_persisted", await document.hasStorageAccess());
} catch (e) {}