Always send submissison message on current window

This commit is contained in:
Julien Nahum 2023-03-23 14:28:39 +01:00
parent 2fcce79c3a
commit 62fcfc8f19
1 changed files with 9 additions and 9 deletions

View File

@ -213,7 +213,7 @@ export default {
},
submission_data: form.data()
}, '*')
} else {
}
window.postMessage({
type: 'form-submitted',
form: {
@ -222,7 +222,7 @@ export default {
},
submission_data: form.data()
}, '*')
}
try {
window.localStorage.removeItem(this.formPendingSubmissionKey)