Added koenig lexical package version to sentry report

closes TryGhost/Team#3381
This commit is contained in:
Steve Larson 2023-06-07 11:05:31 -05:00
parent e1b1af38e9
commit 85896287e3

View File

@ -82,7 +82,7 @@ const fetchKoenig = function () {
} else {
await import(`https://${url.host}${url.pathname}`);
}
return window['@tryghost/koenig-lexical'];
};
@ -195,12 +195,14 @@ export default class KoenigLexicalEditor extends Component {
if (this.config.sentry_dsn) {
Sentry.captureException(error, {
tags: {
lexical: true
tags: {lexical: true},
contexts: {
koenig: {
version: window['@tryghost/koenig-lexical']?.version
}
}
});
}
// don't rethrow, Lexical will attempt to gracefully recover
}