Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#1019 from yunwuu/main
Browse files Browse the repository at this point in the history
fix: raw.split is not a function
  • Loading branch information
Yidadaa authored Apr 23, 2023
2 parents 2efba6e + 725054c commit 71aa9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fetch-prompts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 71aa9d0

Please sign in to comment.