remove from login method for test sentry and add s to websocket enviremnt domain

This commit is contained in:
Eudes Inácio
2022-12-19 11:54:18 +01:00
parent 52b9ea6c51
commit 63e75e82b2
17 changed files with 39 additions and 342 deletions
-17
View File
@@ -16,7 +16,6 @@ import { MessageModel, DeleteMessageModel } from '../../models/beast-orm';
import { RochetChatConnectorService } from 'src/app/services/chat/rochet-chat-connector.service';
import { ChatSystemService } from 'src/app/services/chat/chat-system.service';
import { ChatService } from 'src/app/services/chat.service';
import * as Sentry from "@sentry/capacitor";
@Component({
@@ -100,23 +99,7 @@ export class LoginPage implements OnInit {
this.notificatinsservice.getAndpostToken(this.username);
}
failFunction() {
const foo: any = null;
const bar = foo.test;
}
throwJsError() {
throw new Error('Iam a manual error!')
}
captureSentryError(){
Sentry.captureException('Directly capture the error with sentry');
}
async Login() {
this.failFunction();
this.throwJsError();
this.captureSentryError();
if (this.validateUsername()) {