mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 02:41:22 +01:00
bug fix: popup window didn't show existing selection
This commit is contained in:
1 parent
54e9267655
commit
ec6f624a29
1 file changed
+9
-2
@@ -167,8 +167,15 @@ function handleColoredBarChangeEvent(value) {
|
|||||||
|
|
||||||
function handleColorThemeChangeEvent(value) {
|
function handleColorThemeChangeEvent(value) {
|
||||||
config.colorTheme = value;
|
config.colorTheme = value;
|
||||||
document.getElementById("color_theme_example_like").style.backgroundColor = getColorFromTheme(value, true);
|
document
|
||||||
document.getElementById("color_theme_example_dislike").style.backgroundColor = getColorFromTheme(value, false);
|
.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() {
|
(async function getStatus() {
|
||||||
|
|||||||
Reference in new issue
Block a user