mirror of
https://github.com/mue/mue.git
synced 2026-07-16 13:34:03 +02:00
add custom search engine back
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user