focus on electron

This commit is contained in:
Brendan Allan 2026-04-16 14:57:56 +08:00
commit 8854cbf9fe
No known key found for this signature in database
GPG key ID: 41E835AEA046A32E
6 changed files with 26 additions and 43 deletions

View file

@ -31,7 +31,7 @@ if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
throw new Error(t("error.dev.rootNotFound"))
}
if (!import.meta.env.DEV && import.meta.env.VITE_SENTRY_DSN) {
if (import.meta.env.VITE_SENTRY_DSN) {
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
environment: import.meta.env.VITE_SENTRY_ENVIRONMENT ?? import.meta.env.MODE,
@ -41,6 +41,12 @@ if (!import.meta.env.DEV && import.meta.env.VITE_SENTRY_DSN) {
platform: "desktop-electron",
},
},
integrations: (integrations) => {
return integrations.filter(
(i) =>
i.name !== "Breadcrumbs" && !(import.meta.env.OPENCODE_CHANNEL === "prod" && i.name === "GlobalHandlers"),
)
},
})
}
@ -326,6 +332,8 @@ render(() => {
}
})
throw new Error("Test2")
return null
}