XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Fix JSDELIVR_URL replacement in render function to ensure correct path formatting

2030bdd6
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/gui/server/website.py +1 -1
@@ -47,7 +47,7 @@ def render(filename = "home", download_url: str = DOWNLOAD_URL):
47 47 else:
48 48 response.raise_for_status()
49 49 html = response.text
50 html = html.replace(JSDELIVR_URL, "")
50 html = html.replace(JSDELIVR_URL, "/")
51 51 html = html.replace("../dist/", f"dist/")
52 52 html = html.replace("\"dist/", f"\"{STATIC_URL}dist/")
53 53 if is_temp: