mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-29 18:00:26 -06:00
fix: Exit Intent now works on FF, Safari, Arc (#1059)
This commit is contained in:
@@ -14,7 +14,7 @@ let exitIntentListenerWrapper = async function (e: MouseEvent) {
|
||||
|
||||
export const addExitIntentListener = (): void => {
|
||||
if (typeof document !== "undefined" && !exitIntentListenerAdded) {
|
||||
document.addEventListener("mouseleave", exitIntentListenerWrapper);
|
||||
document.querySelector("body")!.addEventListener("mouseleave", exitIntentListenerWrapper);
|
||||
exitIntentListenerAdded = true;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user