aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--settings.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/settings.js b/settings.js
index 5c20ec1..fd05a29 100644
--- a/settings.js
+++ b/settings.js
@@ -48,10 +48,7 @@ function remove_titles()
checked = document.getElementById("page_titles").checked;
} catch {
/* Index page */
- if (localStorage.getItem("remove_titles") === "true")
- checked = true;
- else
- checked = false;
+ checked = (localStorage.getItem("remove_titles") === "true");
}
if (checked && !window.location.href.endsWith("settings.html"))