various fixes and optimisations

This commit is contained in:
David Ralph
2020-09-26 14:47:47 +01:00
parent 8e921e3c12
commit 4b27532ac6
10 changed files with 73 additions and 70 deletions

View File

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