Skip to content

Commit

Permalink
fix js
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaniog committed Apr 17, 2024
1 parent e87706c commit 7853fa0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.idea
build
.env
.env
3 changes: 3 additions & 0 deletions front/static/js/game/game.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
let socket

const HTTP = "http"
const WS = "ws"

function runGame(url) {
// TODO убрать
try {
Expand Down
3 changes: 0 additions & 3 deletions front/static/js/game/lobby.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ class OptionsManager {

manager = new OptionsManager()

const HTTP = "http"
const WS = "ws"

class Lobby {
run(id) {
this.socket = new WebSocket(`${WS}://${window.location.host}/ws/play/${id}`)
Expand Down

0 comments on commit 7853fa0

Please sign in to comment.