From b76cbc3bc6e15ed785150c4c55dd4a495c4676b5 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Thu, 18 Mar 2021 13:53:00 +0000 Subject: [PATCH] fix: background credit (again) --- src/components/modals/tabs/backend/Tab.jsx | 2 +- src/components/widgets/background/Background.jsx | 3 ++- src/modules/default_settings.json | 12 ++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/components/modals/tabs/backend/Tab.jsx b/src/components/modals/tabs/backend/Tab.jsx index 21af84b4..93a8dacb 100644 --- a/src/components/modals/tabs/backend/Tab.jsx +++ b/src/components/modals/tabs/backend/Tab.jsx @@ -37,7 +37,7 @@ export default function Tab(props) { let icon, divider; switch (props.label) { - // Navbar + // Navbar case 'Settings': icon = ; break; case 'My Add-ons': icon = ; break; case 'Marketplace': icon = ; break; diff --git a/src/components/widgets/background/Background.jsx b/src/components/widgets/background/Background.jsx index 2481b672..bf6a37ba 100644 --- a/src/components/widgets/background/Background.jsx +++ b/src/components/widgets/background/Background.jsx @@ -181,7 +181,8 @@ export default class Background extends React.PureComponent { return document.querySelector('.photoInformation').style.display = 'none'; } - if (localStorage.getItem('customBackgroundColour') !== 'Disabled') { + const backgroundColour = localStorage.getItem('customBackgroundColour'); + if (backgroundColour !== 'Disabled' && backgroundColour !== '') { document.querySelector('.photoInformation').style.display = 'none'; } diff --git a/src/modules/default_settings.json b/src/modules/default_settings.json index a5d63296..1709bd23 100644 --- a/src/modules/default_settings.json +++ b/src/modules/default_settings.json @@ -98,5 +98,17 @@ { "name": "date", "value": "false" + }, + { + "name": "timeType", + "value": "digital" + }, + { + "name": "dateFormat", + "value": "DMY" + }, + { + "name": "shortFormat", + "value": "default" } ]