mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added koenig lexical package version to sentry report
closes TryGhost/Team#3381
This commit is contained in:
parent
887155938a
commit
f6457569c6
1 changed files with 6 additions and 4 deletions
|
@ -82,7 +82,7 @@ const fetchKoenig = function () {
|
|||
} else {
|
||||
await import(`https://${url.host}${url.pathname}`);
|
||||
}
|
||||
|
||||
|
||||
return window['@tryghost/koenig-lexical'];
|
||||
};
|
||||
|
||||
|
@ -189,12 +189,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…
Add table
Reference in a new issue