forked from XiaoMo/ChatGPT-Next-Web
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
This commit is contained in:
commit
d5bd77cca1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user