fix: logs in admin panel

This commit is contained in:
2024-12-18 14:00:05 +01:00
parent f104f09c1f
commit 7162de5f29
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
logs: "x",
start: (dotNetObject, serverId) => {
logs = new EventSource(`http://localhost:8080/api/admin/servers/${serverId}/logs`, { withCredentials: true });
logs = new EventSource(`http://localhost:8080/api/admin/servers/${serverId}/logs`);
logs.onmessage = event => {
dotNetObject.invokeMethodAsync("ReceiveLog", event.data);