From b6f74d4305e4d1814545d46718a90bb4ac7695a6 Mon Sep 17 00:00:00 2001 From: edenbun Date: Sat, 29 Aug 2020 17:27:16 +0100 Subject: [PATCH] Switch a few stray lets to const --- src/components/widgets/Background.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/widgets/Background.jsx b/src/components/widgets/Background.jsx index 73ec0498..605ae3bc 100644 --- a/src/components/widgets/Background.jsx +++ b/src/components/widgets/Background.jsx @@ -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