mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-28 21:31:03 +00:00
feat: adding onlinefix credentials
This commit is contained in:
12
src/index.ts
12
src/index.ts
@@ -19,7 +19,17 @@ if (process.platform !== "darwin") {
|
||||
}
|
||||
|
||||
if (process.env.SENTRY_DSN) {
|
||||
init({ dsn: process.env.SENTRY_DSN });
|
||||
init({
|
||||
dsn: process.env.SENTRY_DSN,
|
||||
beforeSend: async (event) => {
|
||||
const userPreferences = await userPreferencesRepository.findOne({
|
||||
where: { id: 1 },
|
||||
});
|
||||
|
||||
if (userPreferences?.telemetryEnabled) return event;
|
||||
return null;
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
i18n.init({
|
||||
|
||||
Reference in New Issue
Block a user