mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-10-28 07:40:27 +01:00
bug fix: popup window didn't show existing selection
This commit is contained in:
@@ -167,8 +167,15 @@ function handleColoredBarChangeEvent(value) {
|
||||
|
||||
function handleColorThemeChangeEvent(value) {
|
||||
config.colorTheme = value;
|
||||
document.getElementById("color_theme_example_like").style.backgroundColor = getColorFromTheme(value, true);
|
||||
document.getElementById("color_theme_example_dislike").style.backgroundColor = getColorFromTheme(value, false);
|
||||
document
|
||||
.getElementById("color_theme")
|
||||
.querySelector('option[value="' + value + '"]').selected = true;
|
||||
updateColorThemePreviewContent(value);
|
||||
}
|
||||
|
||||
function updateColorThemePreviewContent(themeName) {
|
||||
document.getElementById("color_theme_example_like").style.backgroundColor = getColorFromTheme(themeName, true);
|
||||
document.getElementById("color_theme_example_dislike").style.backgroundColor = getColorFromTheme(themeName, false);
|
||||
}
|
||||
|
||||
(async function getStatus() {
|
||||
|
||||
Reference in New Issue
Block a user