Comment empty blocks

This commit is contained in:
toasted-nutbread 2019-11-25 14:22:43 -05:00
parent 943350a1f6
commit 1daed12290
2 changed files with 9 additions and 3 deletions

View File

@ -404,7 +404,9 @@ async function apiGetBrowser() {
if (info.name === 'Fennec') {
return 'firefox-mobile';
}
} catch (e) { }
} catch (e) {
// NOP
}
return 'firefox';
} else {
return 'chrome';

View File

@ -737,7 +737,9 @@ function storageBytesToLabeledString(size) {
async function storageEstimate() {
try {
return (storageEstimate.mostRecent = await navigator.storage.estimate());
} catch (e) { }
} catch (e) {
// NOP
}
return null;
}
storageEstimate.mostRecent = null;
@ -745,7 +747,9 @@ storageEstimate.mostRecent = null;
async function isStoragePeristent() {
try {
return await navigator.storage.persisted();
} catch (e) { }
} catch (e) {
// NOP
}
return false;
}