Adding doctype html
This commit is contained in:
parent
48874c57c1
commit
f8020241cb
@ -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
@ -1,3 +1,4 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="/css/styles.css"/>
|
<link rel="stylesheet" href="/css/styles.css"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user