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) }
|
||||
|
||||
const jsonResponse = JSON.stringify(f.data.data)
|
||||
return jsonResponse
|
||||
return f.data.data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user