mirror of
https://github.com/mue/mue.git
synced 2026-07-24 09:17:24 +02:00
optimise and fix quote api support for addons
This commit is contained in:
@@ -15,14 +15,15 @@ export default class SearchSettings extends React.PureComponent {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
if (localStorage.getItem('searchEngine') === 'custom') {
|
||||
const searchEngine = localStorage.getItem('searchEngine');
|
||||
if (searchEngine === 'custom') {
|
||||
const input = document.getElementById('searchEngineInput');
|
||||
input.style.display = 'block';
|
||||
input.enabled = 'true';
|
||||
document.getElementById('customSearchEngine').value = localStorage.getItem('customSearchEngine');
|
||||
} else localStorage.removeItem('customSearchEngine');
|
||||
|
||||
document.getElementById('searchEngine').value = localStorage.getItem('searchEngine');
|
||||
document.getElementById('searchEngine').value = searchEngine;
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user