* Fixed reset toast in background modal.

* Fixed credits dom selector

I hadn't realized these bugs were in the master branch.
This commit is contained in:
MrOnosa
2020-10-21 18:19:35 -05:00
parent 3b5ac499cc
commit 30c50968a2
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ export default class Background extends React.PureComponent {
`${background}; -webkit-filter: blur(${localStorage.getItem('blur')}px) brightness(${brightness}%);`
);
if (credit === 'false') document.querySelector('#credits').style.display = 'none'; // Hide the credit
if (credit === 'false' && document.querySelector('#credits')) document.querySelector('#credits').style.display = 'none'; // Hide the credit
}
setCredit(photographer, unsplash, url) {