1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-02-16 20:00:57 +01:00

Small code improvements (#109)

This commit is contained in:
nobody 2020-09-26 06:38:04 +02:00
parent d0fca271a1
commit 99cf8e9b2b
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A

View File

@ -400,7 +400,6 @@ options._setDefaultColor = function ({ target }) {
document.getElementById('counter-preview-badge').style.backgroundColor = options._backgroundColor; document.getElementById('counter-preview-badge').style.backgroundColor = options._backgroundColor;
document.getElementById('pre-badged-background-color').style.backgroundColor = options._backgroundColor; document.getElementById('pre-badged-background-color').style.backgroundColor = options._backgroundColor;
document.getElementById('badged-background-color').value = options._backgroundColor; document.getElementById('badged-background-color').value = options._backgroundColor;
} }
}; };
@ -414,8 +413,8 @@ options._onDocumentLoaded = function () {
options._optionElements = options._getOptionElements(); options._optionElements = options._getOptionElements();
options._languageSupported = helpers.languageIsFullySupported(language); options._languageSupported = helpers.languageIsFullySupported(language);
options._scriptDirection = helpers.determineScriptDirection(language); options._scriptDirection = helpers.determineScriptDirection(language);
options._colorPicker();
options._colorPicker();
options._renderContents(); options._renderContents();
}; };