Merge branch 'trunk' into PCP-2006-google-pay-settings-improvements

This commit is contained in:
Pedro Silva 2023-09-21 16:10:28 +01:00
commit ad018766a6
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
57 changed files with 1367 additions and 2686 deletions

View file

@ -6,7 +6,6 @@ export default class FormSaver {
async save(form) {
const formData = new FormData(form);
const formJsonObj = Object.fromEntries(formData.entries());
const res = await fetch(this.url, {
method: 'POST',
@ -16,7 +15,7 @@ export default class FormSaver {
credentials: 'same-origin',
body: JSON.stringify({
nonce: this.nonce,
form: formJsonObj,
form_encoded: new URLSearchParams(formData).toString(),
}),
});