mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-22 15:54:09 +00:00
14 lines
295 B
TypeScript
14 lines
295 B
TypeScript
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
|
|
})
|
|
}
|
|
})
|