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,16 +213,16 @@ export default {
}, },
submission_data: form.data() submission_data: form.data()
}, '*') }, '*')
} else {
window.postMessage({
type: 'form-submitted',
form: {
slug: this.form.slug,
id: this.form.id
},
submission_data: form.data()
}, '*')
} }
window.postMessage({
type: 'form-submitted',
form: {
slug: this.form.slug,
id: this.form.id
},
submission_data: form.data()
}, '*')
try { try {
window.localStorage.removeItem(this.formPendingSubmissionKey) window.localStorage.removeItem(this.formPendingSubmissionKey)