chore: Expose Sentry object globally (#8957)

This commit is contained in:
Aswath K 2021-11-02 13:17:40 +05:30 committed by GitHub
parent e944d005c1
commit dda55f38cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@ declare global {
interface Window {
APPSMITH_FEATURE_CONFIGS: INJECTED_CONFIGS;
Intercom: any;
Sentry: any;
}
}

View File

@ -45,6 +45,7 @@ export const appInitializer = () => {
const appsmithConfigs = getAppsmithConfigs();
if (appsmithConfigs.sentry.enabled) {
window.Sentry = Sentry;
Sentry.init({
...appsmithConfigs.sentry,
beforeBreadcrumb(breadcrumb) {