Even more bug fixes

This commit is contained in:
David Ralph
2020-09-23 10:48:23 +01:00
parent 66414461c4
commit 7dbd4976b7
6 changed files with 36 additions and 8 deletions

View File

@@ -63,8 +63,11 @@ export default class SettingsFunctions {
localStorage.setItem('customBackgroundColour', document.getElementById('customBackgroundHex').textContent);
}
if (document.getElementById('searchEngineInput').enabled === 'true') {
localStorage.setItem('searchEngine', 'custom');
localStorage.setItem('customSearchEngine', document.getElementById('customSearchEngine').value);
const input = document.getElementById('customSearchEngine').value;
if (input) {
localStorage.setItem('searchEngine', 'custom');
localStorage.setItem('customSearchEngine', input);
}
}
window.location.reload();
}