Lock the right pane while focused, add project focus, quiet lead
This commit is contained in:
+2
-1
@@ -43,6 +43,7 @@ type Options<O> = {
|
||||
path?: PathParams<O>;
|
||||
query?: QueryParams<O>;
|
||||
body?: Body<O>;
|
||||
keepalive?: boolean;
|
||||
};
|
||||
|
||||
export class ApiError extends Error {
|
||||
@@ -75,7 +76,7 @@ export async function request<M extends Method, P extends PathsWith<M>>(
|
||||
url += `?${query}`;
|
||||
}
|
||||
|
||||
const init: RequestInit = { method: method.toUpperCase() };
|
||||
const init: RequestInit = { method: method.toUpperCase(), keepalive: opts.keepalive ?? false };
|
||||
if (opts.body instanceof Blob) {
|
||||
init.headers = { "Content-Type": opts.body.type || "application/octet-stream" };
|
||||
init.body = opts.body;
|
||||
|
||||
Reference in New Issue
Block a user