Switch a few stray lets to const

This commit is contained in:
edenbun
2020-08-29 17:27:16 +01:00
parent 0a670de8f1
commit b6f74d4305

View File

@@ -4,7 +4,7 @@ import * as Constants from '../../modules/constants';
export default class Background extends React.PureComponent {
setBackground(url, colour) { // Sets the attributes of the background image
let background = colour ? `background-color: ${colour};` : `background-image: url(${url});`
const background = colour ? `background-color: ${colour};` : `background-image: url(${url});`
document.querySelector('#backgroundImage').setAttribute(
'style',
@@ -67,7 +67,7 @@ export default class Background extends React.PureComponent {
break;
}
let data = await (await fetch(requestURL)).json(); // Fetch JSON data from requestURL
const data = await (await fetch(requestURL)).json(); // Fetch JSON data from requestURL
if (data.statusCode === 429) {
this.doOffline(); // If we hit the rate limit, fallback to local images