From b105b3049504ac220c8d5f8771f63d025df189c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 19 Feb 2022 11:49:31 -0500 Subject: [PATCH] prevent crash --- public/persona.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/persona.js b/public/persona.js index 54e5b2a..06c3fe9 100644 --- a/public/persona.js +++ b/public/persona.js @@ -50,7 +50,7 @@ $(document).ready(function () { let preference = ['xs', 'sm']; try { - preference = JSON.parse(Storage.getItem('persona:navbar:autohide')); + preference = JSON.parse(Storage.getItem('persona:navbar:autohide')) || preference; } catch (e) { console.warn('[persona/settings] Unable to parse value for navbar autohiding'); }