fixed bug where reading accessibility preferences fails if it's never been set

This commit is contained in:
ari melody 2023-10-15 04:28:09 +01:00
parent 0369773a6e
commit cc19ccd080
Signed by: ari
GPG key ID: CF99829C92678188

View file

@ -1,4 +1,4 @@
const accessibility = JSON.parse(localStorage.getItem("accessibility"));
const accessibility = JSON.parse(localStorage.getItem("accessibility")) || {};
function toggle_accessibility_setting(name) {
if (accessibility[name]) {