🐛 Fixes hide settings in conf (#329)
This commit is contained in:
@@ -122,8 +122,9 @@ export default {
|
|||||||
getSettingsVisibility() {
|
getSettingsVisibility() {
|
||||||
const screenWidth = document.body.clientWidth;
|
const screenWidth = document.body.clientWidth;
|
||||||
if (screenWidth && screenWidth < 600) return false;
|
if (screenWidth && screenWidth < 600) return false;
|
||||||
return JSON.parse(localStorage[localStorageKeys.HIDE_SETTINGS]
|
if ((this.visibleComponents || {}).settings === false) return false;
|
||||||
|| (this.visibleComponents || defaultVisibleComponents).settings);
|
if (localStorage[localStorageKeys.HIDE_SETTINGS] === 'false') return false;
|
||||||
|
return defaultVisibleComponents.settings;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user