mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-20 02:46:04 +08:00
Merge pull request #1019 from yunwuu/main
fix: raw.split is not a function
This commit is contained in:
@@ -36,7 +36,7 @@ async function fetchEN() {
|
|||||||
try {
|
try {
|
||||||
// const raw = await (await fetch(EN_URL)).text();
|
// const raw = await (await fetch(EN_URL)).text();
|
||||||
const response = await Promise.race([fetch(EN_URL), timeoutPromise(5000)]);
|
const response = await Promise.race([fetch(EN_URL), timeoutPromise(5000)]);
|
||||||
const raw = response.text();
|
const raw = await response.text();
|
||||||
return raw
|
return raw
|
||||||
.split("\n")
|
.split("\n")
|
||||||
.slice(1)
|
.slice(1)
|
||||||
|
Reference in New Issue
Block a user