remove unused param
This commit is contained in:
parent
4caabae895
commit
2129a97588
2 changed files with 2 additions and 4 deletions
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Reference in a new issue