mirror of
https://github.com/uetchy/namae.git
synced 2025-08-20 18:08:11 +09:00
fix: catch event error
This commit is contained in:
@@ -19,7 +19,9 @@ export function trackEvent({
|
||||
type?: string;
|
||||
}) {
|
||||
if (isProduction) {
|
||||
umami.trackEvent(value, type);
|
||||
try {
|
||||
umami && umami.trackEvent(value, type);
|
||||
} catch (err) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user