fixed bug where reading accessibility preferences fails if it's never been set
This commit is contained in:
parent
0369773a6e
commit
cc19ccd080
|
@ -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]) {
|
||||
|
|
Reference in a new issue