optimise and fix quote api support for addons

This commit is contained in:
David Ralph
2020-12-05 13:48:14 +00:00
parent 7147dbef30
commit 408f8c4502
5 changed files with 96 additions and 16 deletions

View File

@@ -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() {