Fixing the issue with quote escape when serializing strings in JSON in DeepLX.
This commit is contained in:
@@ -159,8 +159,7 @@ async function translateMain(text:string, arg:{from:string, to:string, host:stri
|
|||||||
|
|
||||||
if(!f.ok){ return 'ERR::DeepLX API Error' + (await f.data) }
|
if(!f.ok){ return 'ERR::DeepLX API Error' + (await f.data) }
|
||||||
|
|
||||||
const jsonResponse = JSON.stringify(f.data.data)
|
return f.data.data;
|
||||||
return jsonResponse
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user