Incognito mode local storage issue (#33)

This commit is contained in:
Chirag
2022-11-28 21:41:04 +05:30
committed by GitHub
parent 4027a6fe18
commit 91d18422de
2 changed files with 12 additions and 3 deletions

View File

@@ -192,7 +192,9 @@ export default {
form_id: this.form.id
})
window.localStorage.removeItem(this.form.form_pending_submission_Key)
try {
window.localStorage.removeItem(this.form.form_pending_submission_key)
} catch (e) {}
if (response.data.redirect && response.data.redirect_url) {
window.location.href = response.data.redirect_url