mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-01-09 12:09:04 +01:00
Fix interface loading with dark theme even when 'dark_theme' is set to false (#6614)
This commit is contained in:
parent
292cd489e9
commit
cca4ac56fa
@ -154,6 +154,9 @@ def create_interface():
|
|||||||
if ({str(shared.settings['dark_theme']).lower()}) {{
|
if ({str(shared.settings['dark_theme']).lower()}) {{
|
||||||
document.getElementsByTagName('body')[0].classList.add('dark');
|
document.getElementsByTagName('body')[0].classList.add('dark');
|
||||||
}}
|
}}
|
||||||
|
else {{
|
||||||
|
document.getElementsByTagName('body')[0].classList.remove('dark');
|
||||||
|
}}
|
||||||
{js}
|
{js}
|
||||||
{ui.show_controls_js}
|
{ui.show_controls_js}
|
||||||
toggle_controls(x);
|
toggle_controls(x);
|
||||||
|
Loading…
Reference in New Issue
Block a user