consistency

This commit is contained in:
David Ralph
2019-10-20 21:32:24 +01:00
parent 9f21ffe5f0
commit 4ff9ef3545
2 changed files with 7 additions and 7 deletions

View File

@@ -14,10 +14,10 @@ export default class Background extends React.Component {
root.style.backgroundImage = `url(${data.file})`;
document.getElementById('photographer').innerText = `Photo by ${data.photographer}`;
document.getElementById('location').innerText = `${data.location}`;
document.getElementById('location').innerText = `${data.location}`;
} catch (e) {
document.getElementById('backgroundCredits').style.display = 'none';
document.getElementById('photographer').innerText = 'Photo from Pexels';
document.getElementById('photographer').innerText = 'Photo from Pexels';
root.style.backgroundImage = `url(../offline-images/${randomInt(1, 25)}.jpeg)`;
}
}