mirror of
https://github.com/mue/mue.git
synced 2026-06-08 14:10:42 +02:00
bug fixes
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user