Even more bug fixes

This commit is contained in:
David Ralph
2020-09-23 10:48:23 +01:00
parent 66414461c4
commit 7dbd4976b7
6 changed files with 36 additions and 8 deletions

View File

@@ -11,8 +11,10 @@ export default class Search extends React.PureComponent {
const setting = localStorage.getItem('searchEngine');
const info = searchEngines.find(i => i.settingsName === setting);
url = info.url;
if (info.query) query = info.query;
if (info !== undefined) {
url = info.url;
if (info.query) query = info.query;
}
const custom = localStorage.getItem('customSearchEngine');
if (custom) url = custom;