mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 02:55:38 +01:00
Update className check in tracker.
This commit is contained in:
parent
547eefae82
commit
698d4d2687
1 changed files with 8 additions and 9 deletions
|
|
@ -114,8 +114,7 @@ import { removeTrailingSlash } from '../lib/url';
|
||||||
};
|
};
|
||||||
|
|
||||||
const addEvent = element => {
|
const addEvent = element => {
|
||||||
element.className &&
|
(element.getAttribute('class') || '').split(' ').forEach(className => {
|
||||||
element.className.split(' ').forEach(className => {
|
|
||||||
if (!eventClass.test(className)) return;
|
if (!eventClass.test(className)) return;
|
||||||
|
|
||||||
const [, type, value] = className.split('--');
|
const [, type, value] = className.split('--');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue