x
This commit is contained in:
1 parent
0341b30b6d
commit
bd8f5882e0
9 files changed
+1410
-25
No files matched your search
@@ -23,7 +23,7 @@ async function test() {
|
||||
const waitResponse = async (ms: number) => {
|
||||
await new Promise(resolve => setTimeout(resolve, ms));
|
||||
const lines = responseData.trim().split("\n");
|
||||
const lastLine = lines[lines.length - 1];
|
||||
const lastLine = lines[lines.length - 1] ?? "";
|
||||
try {
|
||||
return JSON.parse(lastLine);
|
||||
} catch (e) {
|
||||
|
||||
Reference in new issue
Block a user