Popstate event not triggering #497
-
Hi gang. We've got a client site that's been launched, but I'm wanting to hook a little clean-up function when people navigate away from a certain page. When a user navigates away and comes back I'm wanting to run a javascript function. I've got this in my main SWUP function.
However it doesn't work on back\forward. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's working fine for me on the domain you posted. I can see both the |
Beta Was this translation helpful? Give feedback.
It's working fine for me on the domain you posted. I can see both the
swup:popState
event from the debug plugin as well as your console log message.