We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1debdb3 commit c547c78Copy full SHA for c547c78
index.ts
@@ -9,7 +9,7 @@ export default async function pushForm(
9
init: RequestInit = {},
10
): Promise<Response> {
11
const fields = new FormData(form);
12
- const url = new URL(form.getAttribute('action')!, location.origin);
+ const url = new URL(form.getAttribute('action') ?? '', location.origin);
13
init.headers = new Headers(init.headers);
14
if (!init.headers.has('Accept')) {
15
init.headers.append(
0 commit comments