Update className check in tracker.

This commit is contained in:
Mike Cao 2022-01-21 14:49:18 -08:00
parent 547eefae82
commit 698d4d2687

View File

@ -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('--');