add custom search engine back

This commit is contained in:
David Ralph
2020-09-18 12:58:37 +01:00
parent e8c5f546cd
commit ed38bc2cbb
5 changed files with 21 additions and 9 deletions

View File

@@ -13,8 +13,6 @@ export default class BackgroundSettings extends React.PureComponent {
localStorage.setItem('customBackground', e.target.result);
document.getElementById('customBackground').src = e.target.result;
document.getElementById('customBackground').value = e.target.result;
document.getElementById('backgroundImage').setAttribute('style', `-webkit-filter:blur(${localStorage.getItem('blur')}px); background-image: url(${localStorage.getItem('customBackground')}`);
document.getElementById('backgroundImage').style.backgroundImage = `url(${localStorage.getItem('customBackground')})`;
});
reader.readAsDataURL(file);