Add translation support for custom background colour disabled text

This commit is contained in:
David Ralph
2020-10-14 19:04:02 +01:00
parent d0a2d6c24c
commit edd8872403
6 changed files with 12 additions and 14 deletions

View File

@@ -47,12 +47,12 @@ export default class SettingsFunctions {
}
}
static saveStuff() {
static saveStuff(hexDisabled) {
localStorage.setItem('blur', document.getElementById('blurRange').value); // this is better than inline onChange for performance
localStorage.setItem('brightness', document.getElementById('brightnessRange').value);
localStorage.setItem('greetingName', document.getElementById('greetingName').value);
localStorage.setItem('customBackground', document.getElementById('customBackground').value);
if (document.getElementById('customBackgroundHex').value !== 'Disabled') {
if (document.getElementById('customBackgroundHex').value !== hexDisabled) {
localStorage.setItem('customBackgroundColour', document.getElementById('customBackgroundHex').value);
}
if (document.getElementById('searchEngineInput').enabled === 'true') {