aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/settings.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js
index dc8c2690..1eed766c 100644
--- a/ext/bg/js/settings.js
+++ b/ext/bg/js/settings.js
@@ -920,7 +920,14 @@ async function storagePersistInitialize() {
if (persisted) {
return;
}
- if (await navigator.storage.persist()) {
+ let result = false;
+ try {
+ result = await navigator.storage.persist();
+ } catch (e) {
+ // NOP
+ }
+
+ if (result) {
persisted = true;
checkbox.checked = true;
storageShowInfo();