Skip to content

Commit

Permalink
chore: clean on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-deriv committed Oct 17, 2024
1 parent 1df2a1f commit d5c8c7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/scripts/freshchat-poc.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ class FreshChat {
window.fcWidget.user.clear();
});
}
} else {
_this.clean();
}

// Track user interaction
Expand Down Expand Up @@ -196,7 +198,6 @@ class FreshChat {
_this.dispatchAction();
}, 50);
} else {
console.log("fc loaded!");
this.actions.map((action) => {
action?.();
});
Expand Down

0 comments on commit d5c8c7a

Please sign in to comment.