Added koenig lexical package version to sentry report
closes TryGhost/Team#3381
This commit is contained in:
parent
e1b1af38e9
commit
85896287e3
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user