aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-09-19 02:50:30 +0200
committerGitHub <noreply@github.com>2023-09-19 00:50:30 +0000
commitae8e8f055e9edfe258e641df8752a070ffdd6823 (patch)
tree1181f5dec6a7e9cfff020aa08d073582cfcc5e43 /docs/content
parent8099238618f6573f1eb5cfeeb0902b641e7121ab (diff)
downloadgitea-ae8e8f055e9edfe258e641df8752a070ffdd6823.tar.gz
gitea-ae8e8f055e9edfe258e641df8752a070ffdd6823.zip
Use fetch helpers instead of fetch (#27026)
WIP because: - [x] Some calls set a `content-type` but send no body, can likely remove the header - [x] Need to check whether `charset=utf-8` has any significance on the webauthn calls, I assume not as it is the default for json content. - [x] Maybe `no-restricted-globals` is better for eslint, but will require a lot of duplication in the yaml or moving eslint config to a `.js` extension. - [x] Maybe export `request` as `fetch`, shadowing the global.
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/contributing/guidelines-frontend.en-us.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/contributing/guidelines-frontend.en-us.md b/docs/content/contributing/guidelines-frontend.en-us.md
index 921c2b0233..0d9e510e70 100644
--- a/docs/content/contributing/guidelines-frontend.en-us.md
+++ b/docs/content/contributing/guidelines-frontend.en-us.md
@@ -95,7 +95,7 @@ Some lint rules and IDEs also have warnings if the returned Promise is not handl
### Fetching data
To fetch data, use the wrapper functions `GET`, `POST` etc. from `modules/fetch.js`. They
-accept a `data` option for the content, will automatically set CSFR token and return a
+accept a `data` option for the content, will automatically set CSRF token and return a
Promise for a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response).
### HTML Attributes and `dataset`