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

XFEstudio/gpt4free

Comment out JSDELIVR_URL replacement in render function to prevent URL rewriting

0804d683
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/gui/server/website.py +1 -1
@@ -66,7 +66,7 @@ def render(filename = "home", download_url: str = GITHUB_URL):
66 66 html = response.text
67 67 html = html.replace("../dist/", f"dist/")
68 68 html = html.replace("\"dist/", f"\"{STATIC_URL}dist/")
69 html = html.replace(JSDELIVR_URL, "/")
69 # html = html.replace(JSDELIVR_URL, "/")
70 70 html = html.replace("{{ v }}", latest_version)
71 71 if is_temp:
72 72 return html