Comment empty blocks
This commit is contained in:
parent
943350a1f6
commit
1daed12290
@ -404,7 +404,9 @@ async function apiGetBrowser() {
|
|||||||
if (info.name === 'Fennec') {
|
if (info.name === 'Fennec') {
|
||||||
return 'firefox-mobile';
|
return 'firefox-mobile';
|
||||||
}
|
}
|
||||||
} catch (e) { }
|
} catch (e) {
|
||||||
|
// NOP
|
||||||
|
}
|
||||||
return 'firefox';
|
return 'firefox';
|
||||||
} else {
|
} else {
|
||||||
return 'chrome';
|
return 'chrome';
|
||||||
|
@ -737,7 +737,9 @@ function storageBytesToLabeledString(size) {
|
|||||||
async function storageEstimate() {
|
async function storageEstimate() {
|
||||||
try {
|
try {
|
||||||
return (storageEstimate.mostRecent = await navigator.storage.estimate());
|
return (storageEstimate.mostRecent = await navigator.storage.estimate());
|
||||||
} catch (e) { }
|
} catch (e) {
|
||||||
|
// NOP
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
storageEstimate.mostRecent = null;
|
storageEstimate.mostRecent = null;
|
||||||
@ -745,7 +747,9 @@ storageEstimate.mostRecent = null;
|
|||||||
async function isStoragePeristent() {
|
async function isStoragePeristent() {
|
||||||
try {
|
try {
|
||||||
return await navigator.storage.persisted();
|
return await navigator.storage.persisted();
|
||||||
} catch (e) { }
|
} catch (e) {
|
||||||
|
// NOP
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user