I was wondering if there is a method in which I can guarantee that some kind of JS code will always run regardless of any JS error on the site.
I want to make a script log that logs my user activity on the admin page, so if something goes wrong, I can easily recreate the workflow that caused the error.
So is there any method for this?
Many thanks.
source
share