fix eslint

This commit is contained in:
undefined committed 2024-08-03 13:43:25 +08:00
1 parent a753260bf3
commit bb10ecf8f1
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ overrides:
- '**/plugins/**/*.page.{ts,js,tsx,jsx}'
rules:
github/array-foreach: 0
'@typescript-eslint/indent':
'@stylistic/indent':
- warn
- 2
'@typescript-eslint/no-invalid-this': 0
+2 -2
View File
@@ -30,12 +30,12 @@ console.log(
window.UiContext = JSON.parse(window.UiContext);
window.UserContext = JSON.parse(window.UserContext);
if (process.env.NODE_ENV === 'production' && !UiContext.sentry_disable) {
if (process.env.NODE_ENV === 'production' && UiContext.sentry_dsn) {
window.captureException = (e) => {
if (!e.isUserFacingError) Sentry.captureException(e);
};
Sentry.init({
dsn: UiContext.sentry_dsn || 'https://2f95d53751e08c74c1af1c4b93ccaff7@sentry.hydro.ac/2',
dsn: UiContext.sentry_dsn,
release: `hydro-web@${process.env.VERSION}`,
integrations: [
Sentry.browserTracingIntegration(),