Skip to content

Commit 85c35f7

Browse files
Fixed bugs (?)
1 parent dc6c55d commit 85c35f7

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

fakeserver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def handle_request(self):
164164
method = self.read_packet()
165165
path = self.read_packet().decode("UTF-8")
166166
body = self.read_packet().decode("UTF-8")
167+
body = body.replace("\\n", "\n")
167168
res: HttpResponseStrict = {
168169
"status": 404,
169170
"headers": {},

game.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import typing
2+
import sys
23

34
class Card:
45
def __init__(self, figure: "Figure", srcGame: "Game"):

public_files/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ function updateData(gameStatus) {
432432
container.dataset.screen = "error"
433433
container.innerText = ""
434434
container.appendChild(document.createElement("div"))
435-
container.children[0].innerHTML = `<h3>Lost connection with the server</h3>`
435+
container.children[0].innerHTML = `<h3>Lost connection with the server</h3>`; container.appendChild(document.createElement("div")); container.children[1].innerHTML = `<button onclick="location.assign(\`/\`)">Exit this game</button>`
436436
return
437437
}
438438
// Add the player elements (if needed)

0 commit comments

Comments
 (0)