This commit is contained in:
Andrii Dokhniak 2025-04-18 11:58:50 +02:00
parent 650757fe19
commit bd51549d08
2 changed files with 2 additions and 3 deletions

View File

@ -38,4 +38,5 @@ export function send_notification(is_ok, context, message) {
}
}
}
notification_subs = updated_subs;
}

View File

@ -5,13 +5,12 @@ import { h, render, Component } from "preact";
*/
/**
* A number, or a string containing a number.
* @typedef {{
* body: string,
* headers: [[string, string]],
* url: URL,
* id: string,
* kv: Map<Source, string>,
* kv: Map<[Source, string], string>,
* }} Req
*/
@ -93,7 +92,6 @@ class TrafficLog extends Component {
this.connection.onmessage = (msg) => {
let req = process_msg(msg.data);
if (req) {
console.log(req);
this.setState({ requests: [...this.state.requests, req] });
}
};