fix: raw.split is not a function

This commit is contained in:
雲霧 2023-04-23 10:51:34 +08:00 committed by GitHub
parent 2efba6ea6f
commit 725054c7d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)