mr feedback

This commit is contained in:
Jorrin 2024-01-25 19:25:56 +01:00
parent 4202bf8ef3
commit f9a70b196b

View File

@ -74,10 +74,8 @@ export function makeExtensionFetcher() {
url, url,
...opsWithoutBody, ...opsWithoutBody,
...(ops.body && { ...(ops.body && {
body: { body: convertBodyToObject(ops.body),
bodyType: getBodyTypeFromBody(ops.body), bodyType: getBodyTypeFromBody(ops.body),
value: convertBodyToObject(ops.body),
},
}), }),
}); });
if (!result?.success) throw new Error(`extension error: ${result?.error}`); if (!result?.success) throw new Error(`extension error: ${result?.error}`);