diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-15 19:22:30 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-15 19:22:30 -0400 |
commit | 099909287f23bbc9e2deee2e4cd8cf9b17c88618 (patch) | |
tree | 85871790a70eadfffd51a39ffc3cfc170c483d23 /ext/bg/js | |
parent | 4443ad370e00db06334305e6223c3432c33ac992 (diff) |
Show warning messages if persistant storage fails
Only Firefox seems to support persistent storage properly.
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/settings.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js index 1eed766c..2c77a0ed 100644 --- a/ext/bg/js/settings.js +++ b/ext/bg/js/settings.js @@ -912,9 +912,7 @@ async function storagePersistInitialize() { button.classList.remove('storage-hidden'); let persisted = await isStoragePeristent(); - if (persisted) { - checkbox.checked = true; - } + checkbox.checked = persisted; button.addEventListener('click', async () => { if (persisted) { @@ -931,6 +929,8 @@ async function storagePersistInitialize() { persisted = true; checkbox.checked = true; storageShowInfo(); + } else { + $('.storage-persist-fail-warning').removeClass('storage-hidden'); } }, false); } |