mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-09-26 20:31:14 +08:00
Comment out JSDELIVR_URL replacement in render function to prevent URL rewriting
This commit is contained in:
@@ -66,7 +66,7 @@ def render(filename = "home", download_url: str = GITHUB_URL):
|
||||
html = response.text
|
||||
html = html.replace("../dist/", f"dist/")
|
||||
html = html.replace("\"dist/", f"\"{STATIC_URL}dist/")
|
||||
html = html.replace(JSDELIVR_URL, "/")
|
||||
# html = html.replace(JSDELIVR_URL, "/")
|
||||
html = html.replace("{{ v }}", latest_version)
|
||||
if is_temp:
|
||||
return html
|
||||
|
Reference in New Issue
Block a user