aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-25 14:22:43 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-26 22:06:27 -0500
commit1daed122909532f5ec5c4b470ddf7f791944cf73 (patch)
tree3a42e6e77c0470a08855604fcc47654bdc9ec223 /ext/bg/js/settings.js
parent943350a1f66b3576e98c58539cbff277b0069977 (diff)
Comment empty blocks
Diffstat (limited to 'ext/bg/js/settings.js')
-rw-r--r--ext/bg/js/settings.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js
index f5c086ef..48026794 100644
--- a/ext/bg/js/settings.js
+++ b/ext/bg/js/settings.js
@@ -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;
}