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();