aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/settings.js6
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);
}