mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-06 07:03:37 +00:00
Remove no longer needed dark theme localstorage code
This commit is contained in:
parent
866c48e55b
commit
8cbb7661a8
1 changed files with 0 additions and 3 deletions
|
|
@ -209,9 +209,6 @@ def create_interface():
|
|||
gradio('show_controls'),
|
||||
None,
|
||||
js=f"""(x) => {{
|
||||
if (!localStorage.getItem('theme')) {{
|
||||
localStorage.setItem('theme', {str(shared.settings['dark_theme']).lower()} ? 'dark' : 'light');
|
||||
}}
|
||||
{js}
|
||||
{ui.show_controls_js}
|
||||
toggle_controls(x);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue