remove unused param

This commit is contained in:
Bruno Windels 2022-06-15 11:12:49 +02:00
parent 4caabae895
commit 2129a97588
2 changed files with 2 additions and 4 deletions

View file

@ -61,9 +61,7 @@ export async function submitLogsToRageshakeServer(data: RageshakeData, logsBlob:
throw new Error(`Could not submit logs to ${submitUrl}, got error ${err.message}`);
}
const {status, body} = response;
if (status >= 200 && status < 300) {
return body.report_url;
} else {
if (status < 200 || status >= 300) {
throw new Error(`Could not submit logs to ${submitUrl}, got status code ${status} with body ${body}`);
}
}

View file

@ -64,7 +64,7 @@ export function createFetchRequest(createTimeout, serviceWorkerHandler) {
if (requestOptions?.uploadProgress) {
return xhrRequest(url, requestOptions);
}
let {method, headers, body, formData, timeout, format, cache = false} = requestOptions;
let {method, headers, body, timeout, format, cache = false} = requestOptions;
const controller = typeof AbortController === "function" ? new AbortController() : null;
// if a BlobHandle, take native blob
if (body?.nativeBlob) {