mirror of
https://github.com/mue/mue.git
synced 2026-07-17 22:14:13 +02:00
Even more bug fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user