From e083ed7cd8278c084633259af099ff0261ccdf01 Mon Sep 17 00:00:00 2001 From: Rodrigo Quelca Date: Thu, 1 Aug 2024 21:01:28 -0400 Subject: [PATCH] fix code review notes --- src/components/task.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/task.vue b/src/components/task.vue index bc1a30f90..7a0bf3bd7 100644 --- a/src/components/task.vue +++ b/src/components/task.vue @@ -455,6 +455,7 @@ export default { const elementDestinationUrl = elementDestination.value; if (elementDestinationUrl) { + // Save the referring URL to sessionStorage for future verification sessionStorage.setItem('sessionUrlActionBlocker', document.referrer); return elementDestinationUrl; } @@ -808,7 +809,7 @@ export default { * * @returns {boolean} Returns false if the 'sessionUrlActionBlocker' was found and handled, true otherwise. */ - hasUrlActionBloker() { + hasUrlActionBlocker() { // Retrieve the 'sessionUrlActionBlocker' value from sessionStorage const redirectedFrom = sessionStorage.getItem("sessionUrlActionBlocker"); @@ -832,7 +833,7 @@ export default { this.nodeId = this.initialNodeId; this.requestData = this.value; this.loopContext = this.initialLoopContext; - if (!this.hasUrlActionBloker()) { + if (!this.hasUrlActionBlocker()) { this.loadTask(); } },