mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
fix eslint
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user