Always send submissison message on current window
This commit is contained in:
@@ -213,16 +213,16 @@ export default {
|
||||
},
|
||||
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 {
|
||||
window.localStorage.removeItem(this.formPendingSubmissionKey)
|
||||
|
||||
Reference in New Issue
Block a user