Skip to content

Commit

Permalink
Use list_files_with_prefix for CSS files
Browse files Browse the repository at this point in the history
  • Loading branch information
anapnoe authored Oct 3, 2024
1 parent 93a37cb commit 6bad384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ui_gradio_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def css_html():
def stylesheet(fn):
return f'<link rel="stylesheet" property="stylesheet" href="{webpath(fn)}">'

for cssfile in scripts.list_files_with_name("style.css"):
for cssfile in scripts.list_files_with_prefix("style", ".css"):
head += stylesheet(cssfile)

user_css = os.path.join(data_path, "user.css")
Expand Down

0 comments on commit 6bad384

Please sign in to comment.