mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
expose sentry to extensions
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
import * as Sentry from '@sentry/vue'
|
||||
|
||||
import { app } from '../../../scripts/app'
|
||||
|
||||
app.registerExtension({
|
||||
name: 'Comfy.Cloud.Sentry',
|
||||
onAuthUserResolved: (user, _app) => {
|
||||
// https://docs.sentry.io/platforms/javascript/apis/#setUser
|
||||
Sentry.setUser({
|
||||
id: user.id
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user