summaryrefslogtreecommitdiff
path: root/packages/client/src/os.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-01-02 21:35:23 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-01-02 21:35:23 +0900
commit41ed9a1a7263fbdfac46c6c49f19f8d8d82f55de (patch)
tree7f0e8837b510d771f60ee0e7e928e60e1d73a22d /packages/client/src/os.ts
parentupdate deps (diff)
downloadmisskey-41ed9a1a7263fbdfac46c6c49f19f8d8d82f55de.tar.gz
misskey-41ed9a1a7263fbdfac46c6c49f19f8d8d82f55de.tar.bz2
misskey-41ed9a1a7263fbdfac46c6c49f19f8d8d82f55de.zip
tweak client
Diffstat (limited to 'packages/client/src/os.ts')
-rw-r--r--packages/client/src/os.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/packages/client/src/os.ts b/packages/client/src/os.ts
index 1ea205d5c8..d9400103f5 100644
--- a/packages/client/src/os.ts
+++ b/packages/client/src/os.ts
@@ -4,7 +4,6 @@ import { Component, defineAsyncComponent, markRaw, reactive, Ref, ref } from 'vu
import { EventEmitter } from 'eventemitter3';
import insertTextAtCursor from 'insert-text-at-cursor';
import * as Misskey from 'misskey-js';
-import * as Sentry from '@sentry/browser';
import { apiUrl, debug, url } from '@/config';
import MkPostFormDialog from '@/components/post-form-dialog.vue';
import MkWaitingDialog from '@/components/waiting-dialog.vue';
@@ -70,19 +69,6 @@ export const api = ((endpoint: string, data: Record<string, any> = {}, token?: s
log!.res = markRaw(body.error);
log!.state = 'failed';
}
-
- if (defaultStore.state.reportError && !_DEV_) {
- Sentry.withScope((scope) => {
- scope.setTag('api_endpoint', endpoint);
- scope.setContext('api params', data);
- scope.setContext('api error info', body.info);
- scope.setTag('api_error_id', body.id);
- scope.setTag('api_error_code', body.code);
- scope.setTag('api_error_kind', body.kind);
- scope.setLevel(Sentry.Severity.Error);
- Sentry.captureMessage('API error');
- });
- }
}
}).catch(reject);
});