diff --git a/public/settings.js b/public/settings.js index ae38497..5e2359a 100644 --- a/public/settings.js +++ b/public/settings.js @@ -18,7 +18,7 @@ define('forum/account/theme', ['forum/account/header', 'storage', 'settings', 'a document.getElementById('persona:menus:legacy-layout').checked = sidebarSwapped; try { - const parsed = JSON.parse(autohideNavbarEnvs); + const parsed = JSON.parse(autohideNavbarEnvs) || ['xs', 'sm']; parsed.forEach((env) => { const optionEl = document.getElementById('persona:navbar:autohide').querySelector(`option[value="${env}"]`); optionEl.selected = true;