Stop logging each event received

This commit is contained in:
Torjus Håkestad 2021-04-11 02:26:25 +02:00
parent 44f611aa6b
commit da88832870

View File

@ -71,7 +71,6 @@ export default class AttemptList extends Vue {
const attemptStream = new EventSource('/api/stream'); const attemptStream = new EventSource('/api/stream');
attemptStream.addEventListener('message', (ev: MessageEvent<string>) => { attemptStream.addEventListener('message', (ev: MessageEvent<string>) => {
console.log(ev);
const parsed: LoginAttempt = JSON.parse(ev.data); const parsed: LoginAttempt = JSON.parse(ev.data);
this.attempts.unshift(parsed); this.attempts.unshift(parsed);
}); });