fix: catch event error

This commit is contained in:
2021-10-07 23:54:21 +09:00
parent ad58f4f567
commit 2790dfb7ac
3 changed files with 1030 additions and 967 deletions
+3 -1
View File
@@ -19,7 +19,9 @@ export function trackEvent({
type?: string;
}) {
if (isProduction) {
umami.trackEvent(value, type);
try {
umami && umami.trackEvent(value, type);
} catch (err) {}
}
}