Adding doctype html

This commit is contained in:
Sergiotarxz 2023-06-29 09:14:02 +02:00
parent 48874c57c1
commit f8020241cb
3 changed files with 4 additions and 2 deletions

View File

@ -53,6 +53,7 @@ export default function Game (props: GameProps): JSX.Element {
window.setTimeout(() => { window.setTimeout(() => {
setWebsocket((websocket): WebSocket | null => { setWebsocket((websocket): WebSocket | null => {
if (websocket === null) { if (websocket === null) {
console.log('Opening websocket');
const locationProtocol = window.location.protocol const locationProtocol = window.location.protocol
if (locationProtocol == null) { if (locationProtocol == null) {
return null return null
@ -94,7 +95,7 @@ export default function Game (props: GameProps): JSX.Element {
} }
return websocket return websocket
}) })
}, 10) }, 300)
return ( return (
<> <>
<UpperPanel teamPJs={teamPJs} <UpperPanel teamPJs={teamPJs}

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
<!DOCTYPE html>
<html> <html>
<head> <head>
<link rel="stylesheet" href="/css/styles.css"/> <link rel="stylesheet" href="/css/styles.css"/>