static: improve ModalButton performance by using manual redirects

This commit is contained in:
Jens Langhammer 2020-11-24 12:49:56 +01:00
parent 2de4023d43
commit afbecadba0
3 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -86,6 +86,7 @@ export class ModalButton extends LitElement {
fetch(this.href ? this.href : form.action, { fetch(this.href ? this.href : form.action, {
method: form.method, method: form.method,
body: formData, body: formData,
redirect: "manual",
}) })
.then((response) => { .then((response) => {
return response.text(); return response.text();