1
0
mirror of https://github.com/Lissy93/dashy.git synced 2025-04-08 17:06:18 +02:00

🐛 Fixes hide settings in conf ()

This commit is contained in:
Alicia Sykes 2021-11-13 15:05:35 +00:00
parent 06918738dd
commit 3ed8262495

@ -122,8 +122,9 @@ export default {
getSettingsVisibility() {
const screenWidth = document.body.clientWidth;
if (screenWidth && screenWidth < 600) return false;
return JSON.parse(localStorage[localStorageKeys.HIDE_SETTINGS]
|| (this.visibleComponents || defaultVisibleComponents).settings);
if ((this.visibleComponents || {}).settings === false) return false;
if (localStorage[localStorageKeys.HIDE_SETTINGS] === 'false') return false;
return defaultVisibleComponents.settings;
},
},
};