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

@@ -21,6 +21,9 @@ export default class Search extends React.PureComponent {
default: url = 'https://duckduckgo.com'; break;
}
const custom = localStorage.getItem('customSearchEngine');
if (custom) url = custom;
const searchButton = () => {
let value = document.getElementById('searchtext').value;
if (!value) value = 'mue fast';