返回提交历史
Modified
g4f/gui/server/website.py
+1
-1
XFEstudio/gpt4free
Fix JSDELIVR_URL replacement in render function to ensure correct path formatting
2030bdd6
代码差异
1 个文件
+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: