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:
+3
-3
@@ -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
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user