refactor settings

This commit is contained in:
David Ralph
2020-09-17 12:42:02 +01:00
parent cec368ab5f
commit b5e5b8618e
8 changed files with 212 additions and 148 deletions

View File

@@ -50,7 +50,7 @@ export default class Background extends React.PureComponent {
this.setBackground(null, customBackgroundColour, 'false');
} else if (favourited) {
this.setBackground(favourited.url, null, 'true');
this.setCredit(favourited.credit)
this.setCredit(favourited.credit);
document.getElementById('location').textContent = favourited.location;
} else if (customBackground !== '') { // Local
this.setBackground(customBackground, null, 'false');