e-champ
Advanced tools
Comparing version 2.10.0 to 2.10.1
@@ -48,3 +48,3 @@ /** | ||
} | ||
const room = model.room; | ||
const {room} = model; | ||
const player = model.player || room.getFreePlayer(); | ||
@@ -70,3 +70,3 @@ if (!player) { | ||
const room = this.getRoom(); | ||
const game = room.game; | ||
const {game} = room; | ||
const template = game.getTemplate('play', this); | ||
@@ -78,3 +78,3 @@ return this.render(template, {room, game}); | ||
const room = this.getRoom(); | ||
const play = room.play; | ||
const {play} = room; | ||
if (!play) { | ||
@@ -81,0 +81,0 @@ throw new BadRequest('Room has not started playing yet'); |
@@ -32,3 +32,4 @@ /** | ||
if (key) { | ||
this.setValue(Jam.localStorage.get(key)); | ||
const defaultValue = this.$value.attr('value'); | ||
this.setValue(Jam.localStorage.get(key, defaultValue)); | ||
} | ||
@@ -35,0 +36,0 @@ } |
@@ -25,3 +25,3 @@ /** | ||
const items = []; | ||
const game = this.form.game; | ||
const {game} = this.form; | ||
if (game) { | ||
@@ -28,0 +28,0 @@ for (let i = 1; i < game.maxPlayers; ++i) { |
@@ -23,3 +23,3 @@ /** | ||
this.clearPlay(); | ||
const room = data.room; | ||
const {room} = data; | ||
this.toggleLoading(true); | ||
@@ -65,3 +65,3 @@ this.ajaxRoomAction('play', {room}) | ||
} | ||
const room = play.room; | ||
const {room} = play; | ||
this.ajaxRoomAction('download', {room}) | ||
@@ -68,0 +68,0 @@ .then(this.onExportData.bind(this, play)) |
{ | ||
"name": "e-champ", | ||
"version": "2.10.0", | ||
"version": "2.10.1", | ||
"description": "A server platform for turn-based online games", | ||
@@ -22,4 +22,4 @@ "author": { | ||
"sharp": "~0.32.0", | ||
"ws": "~8.14.2" | ||
"ws": "~8.16.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1220080
4844
+ Addedws@8.16.0(transitive)
- Removedws@8.14.2(transitive)
Updatedws@~8.16.0