fix: background credit (again)

This commit is contained in:
David Ralph
2021-03-18 13:53:00 +00:00
parent f54fd5adb7
commit b76cbc3bc6
3 changed files with 15 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ export default function Tab(props) {
let icon, divider;
switch (props.label) {
// Navbar
// Navbar
case 'Settings': icon = <Settings/>; break;
case 'My Add-ons': icon = <Addons/>; break;
case 'Marketplace': icon = <Marketplace/>; break;

View File

@@ -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';
}