fix: translation cleanup

This commit is contained in:
David Ralph
2021-03-18 15:22:41 +00:00
parent b76cbc3bc6
commit 51eaf3a90e
13 changed files with 127 additions and 111 deletions

View File

@@ -111,7 +111,7 @@ export default class Background extends React.PureComponent {
this.setBackground(randomPhoto.url.default, null, randomPhoto.photographer);
this.setCredit(randomPhoto.photographer);
document.getElementById('location').textContent = randomPhoto.location;
} else if (customBackgroundColour) {
} else if (customBackgroundColour !== 'Disabled' && customBackgroundColour !== '') {
this.setBackground(null, customBackgroundColour, 'false');
} else if (customBackground !== '') {
if (customBackground.includes('.mp4') || customBackground.includes('.webm') || customBackground.includes('.ogg')) {