mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-22 07:49:29 +01:00
Update className check in tracker.
This commit is contained in:
parent
547eefae82
commit
698d4d2687
@ -114,8 +114,7 @@ import { removeTrailingSlash } from '../lib/url';
|
||||
};
|
||||
|
||||
const addEvent = element => {
|
||||
element.className &&
|
||||
element.className.split(' ').forEach(className => {
|
||||
(element.getAttribute('class') || '').split(' ').forEach(className => {
|
||||
if (!eventClass.test(className)) return;
|
||||
|
||||
const [, type, value] = className.split('--');
|
||||
|
Loading…
Reference in New Issue
Block a user