1
0
mirror of https://github.com/lexogrine/dota2-react-hud.git synced 2026-05-04 04:23:10 +02:00

fixed error

This commit is contained in:
Hubert Walczak
2023-05-16 17:42:02 +02:00
parent 44eb8896c5
commit e422cd3fc9
4 changed files with 12 additions and 2606 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ import io from "socket.io-client";
import { loadAvatarURL } from './api/avatars';
import { Match } from './api/interfaces';
import "./HUD/GameHUD/gamehud.scss";
import { exampleData } from './example';
//import { exampleData } from './example';
import { initiateConnection } from './HUD/Camera/mediaStream';
import { GameSummary } from './summaries';
@@ -15,7 +15,7 @@ const DOTA2 = new DOTA2GSI();
export const socket = io(isDev ? `localhost:${port}` : '/');
const isTest = false;
/*
if (isTest) {
setTimeout(() => {
DOTA2.digest(exampleData);
@@ -23,7 +23,7 @@ if (isTest) {
setTimeout(() => {
DOTA2.digest(exampleData)
}, 2000)
}
}*/
let i = 0;
socket.on('update', (data: any) => {
if (!i) console.log(data);
-2592
View File
File diff suppressed because it is too large Load Diff