Skip to content

Commit

Permalink
fix code review notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Quelca committed Aug 2, 2024
1 parent d02582e commit e083ed7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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");
Expand All @@ -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();
}
},
Expand Down

0 comments on commit e083ed7

Please sign in to comment.