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, {
method: form.method,
body: formData,
redirect: "manual",
})
.then((response) => {
return response.text();