Fixing the issue with quote escape when serializing strings in JSON in DeepLX.

This commit is contained in:
ModMapper
2024-03-28 02:15:23 +09:00
parent 279b68d3c6
commit 1575004cf0

View File

@@ -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;
}