mirror of
https://github.com/mue/mue.git
synced 2026-07-26 18:21:27 +02:00
Switch stray getElementById to querySelector
This commit is contained in:
@@ -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);`
|
'style', `background-image: url(../offline-images/${randomImage}.jpeg); -webkit-filter:blur(${localStorage.getItem('blur')}px);`
|
||||||
); // Set background and blur
|
); // Set background and blur
|
||||||
|
|
||||||
const creditElem = document.getElementById('photographer');
|
const creditElem = document.querySelector('#photographer');
|
||||||
creditElem.append(` ${photographer} (Pexels)`); // Set the credit
|
creditElem.append(` ${photographer} (Pexels)`); // Set the credit
|
||||||
|
|
||||||
document.querySelector('#backgroundCredits').style.display = 'none'; // Hide the location icon
|
document.querySelector('#backgroundCredits').style.display = 'none'; // Hide the location icon
|
||||||
|
|||||||
Reference in New Issue
Block a user