summaryrefslogtreecommitdiff
path: root/source/libs/post-form.ts
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-08-31 01:26:28 +0700
committerGravatar GitHub <noreply@github.com> 2019-08-31 01:26:28 +0700
commit8d0393542bd712d7bb7f93874118dedd07b62c7b (patch)
tree0a139195466ba76bf5abdd6cbb979e55dcf3322a /source/libs/post-form.ts
parent0ca864af6da9cac9f503e4abd0c58b60fbe1abc6 (diff)
downloadrefined-github-19.8.31.tar.gz
refined-github-19.8.31.tar.zst
refined-github-19.8.31.zip
Update dependencies and lint (#2391)19.8.31
Diffstat (limited to 'source/libs/post-form.ts')
-rw-r--r--source/libs/post-form.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libs/post-form.ts b/source/libs/post-form.ts
index ad8f5851..ccee33f4 100644
--- a/source/libs/post-form.ts
+++ b/source/libs/post-form.ts
@@ -6,7 +6,7 @@ export default async function postForm(form: HTMLFormElement): Promise<Response>
const contentFetch = typeof window.content === 'object' ? window.content.fetch : window.fetch;
const response = await contentFetch(form.action, {
- // `as` required until https://github.com/microsoft/TSJS-lib-generator/issues/741
+ // TODO: drop `as` after https://github.com/microsoft/TSJS-lib-generator/issues/741
body: new URLSearchParams(new FormData(form) as URLSearchParams),
method: 'POST',
headers: {