Merge pull request #1019 from yunwuu/main

fix: raw.split is not a function
This commit is contained in:
Yifei Zhang 2023-04-23 10:55:58 +08:00 committed by GitHub
commit 71aa9d05ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ async function fetchEN() {
try {
// const raw = await (await fetch(EN_URL)).text();
const response = await Promise.race([fetch(EN_URL), timeoutPromise(5000)]);
const raw = response.text();
const raw = await response.text();
return raw
.split("\n")
.slice(1)