mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Comment out JSDELIVR_URL replacement in render function to prevent URL rewriting
This commit is contained in:
parent
d7375d4c6c
commit
0804d6836a
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ def render(filename = "home", download_url: str = GITHUB_URL):
|
||||||
html = response.text
|
html = response.text
|
||||||
html = html.replace("../dist/", f"dist/")
|
html = html.replace("../dist/", f"dist/")
|
||||||
html = html.replace("\"dist/", f"\"{STATIC_URL}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)
|
html = html.replace("{{ v }}", latest_version)
|
||||||
if is_temp:
|
if is_temp:
|
||||||
return html
|
return html
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue