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')) {

View File

@@ -91,7 +91,9 @@ export default class Quote extends React.PureComponent {
}
let authorlink = `https://${this.props.languagecode.split('-')[0]}.wikipedia.org/wiki/${data.author.split(' ').join('_')}`;
if (localStorage.getItem('authorLink') === 'false') authorLink = null;
if (localStorage.getItem('authorLink') === 'false') {
authorLink = null;
}
this.setState({
quote: '"' + data.quote + '"',