mirror of
https://github.com/mue/mue.git
synced 2026-06-08 14:10:42 +02:00
fix: voice search no longer redirects on empty and now has reload warning
This commit is contained in:
@@ -39,6 +39,10 @@ export default class Search extends React.PureComponent {
|
||||
};
|
||||
|
||||
voiceSearch.onend = () => {
|
||||
if (searchText.value === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
window.location.href = this.state.url + `?${this.state.query}=` + searchText.value;
|
||||
}, 1000);
|
||||
|
||||
Reference in New Issue
Block a user