返回提交历史
Modified
g4f/gui/server/website.py
+3
-3
XFEstudio/gpt4free
fix: update STATIC_URL path replacements in render function for consistency
9cdbd360
代码差异
1 个文件
+3
-3
@@ -67,9 +67,9 @@ def render(filename = "home", download_url: str = GITHUB_URL):
67
67
if not cache_file.endswith(".js") and response.headers.get("Content-Type", "").startswith("application/javascript"):
68
68
cache_file += ".js"
69
69
html = response.text
70
html = html.replace('"../dist/', f"{STATIC_URL}dist/")
71
html = html.replace('"/dist/', f"{STATIC_URL}dist/")
72
html = html.replace('"dist/', f"{STATIC_URL}dist/")
70
html = html.replace('"../dist/', f"\"{STATIC_URL}dist/")
71
html = html.replace('"/dist/', f"\"{STATIC_URL}dist/")
72
html = html.replace('"dist/', f"\"{STATIC_URL}dist/")
73
73
# html = html.replace(JSDELIVR_URL, "/")
74
74
html = html.replace("{{ v }}", latest_version)
75
75
if is_temp: