From 8f3fa2f8980b26fbed3cdb3a4f8c7d3683f7bca3 Mon Sep 17 00:00:00 2001 From: edenbun Date: Thu, 27 Aug 2020 19:39:57 +0100 Subject: [PATCH] Switch stray getElementById to querySelector --- src/components/widgets/Background.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/widgets/Background.jsx b/src/components/widgets/Background.jsx index 25ae5b32..00ce0788 100644 --- a/src/components/widgets/Background.jsx +++ b/src/components/widgets/Background.jsx @@ -15,7 +15,7 @@ export default class Background extends React.PureComponent { 'style', `background-image: url(../offline-images/${randomImage}.jpeg); -webkit-filter:blur(${localStorage.getItem('blur')}px);` ); // Set background and blur - const creditElem = document.getElementById('photographer'); + const creditElem = document.querySelector('#photographer'); creditElem.append(` ${photographer} (Pexels)`); // Set the credit document.querySelector('#backgroundCredits').style.display = 'none'; // Hide the location icon