bug fixes

This commit is contained in:
David Ralph
2021-01-17 16:25:21 +00:00
parent 3ec5a2c199
commit a9c06fd935
27 changed files with 180 additions and 127 deletions

View File

@@ -33,12 +33,15 @@ export default class Search extends React.PureComponent {
const setting = localStorage.getItem('searchEngine');
const info = searchEngines.find(i => i.settingsName === setting);
if (info !== undefined) {
url = info.url;
if (info.query) query = info.query;
}
if (setting === 'custom') url = localStorage.getItem('customSearchEngine');
if (setting === 'custom') {
url = localStorage.getItem('customSearchEngine');
}
const searchButton = () => {
const value = document.getElementById('searchtext').value || 'mue fast';