mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 10:46:32 +00:00
Cleaner catch
This commit is contained in:
@@ -29,7 +29,9 @@ function recordDynamicCustomEvent (type) {
|
|||||||
try {
|
try {
|
||||||
mobileAnalyticsClient.recordEvent(type)
|
mobileAnalyticsClient.recordEvent(type)
|
||||||
} catch (analyticsError) {
|
} catch (analyticsError) {
|
||||||
console.error(analyticsError)
|
if (analyticsError instanceof ReferenceError) {
|
||||||
|
console.log(analyticsError.name + ': ' + analyticsError.message)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -40,7 +42,9 @@ function recordStaticCustomEvent () {
|
|||||||
uiColorTheme: ConfigManager.default.get().ui.theme
|
uiColorTheme: ConfigManager.default.get().ui.theme
|
||||||
})
|
})
|
||||||
} catch (analyticsError) {
|
} catch (analyticsError) {
|
||||||
console.error(analyticsError)
|
if (analyticsError instanceof ReferenceError) {
|
||||||
|
console.log(analyticsError.name + ': ' + analyticsError.message)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user