mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
remove from login method for test sentry and add s to websocket enviremnt domain
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user