Skip to content

Commit

Permalink
removed self-deprecated storage events
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Jun 26, 2023
1 parent e3f1fbf commit 31cccd2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions webclient/src/components/feedback/TokenBasedModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ function _send() {
.then((r) => {
loading.value = false;
if (r.status === SubmissionStatus.SUCCESSFULLY_CREATED) {
localStorage.removeItem("feedback-coords");
token.value = null;
const e = new Event("storage");
window.dispatchEvent(e);
r.text().then((url) => (successUrl.value = url));
} else if (r.status === SubmissionStatus.SERVER_ERROR) {
error.message = `${t("feedback.error.server_error")} (${r.text()})`;
Expand Down

0 comments on commit 31cccd2

Please sign in to comment.