Soft'N'Design Software
/
projects
/
trivabble.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6d3dc6
)
better score check
author
Laurent Mazet
<mazet@softndesign.org>
Tue, 24 Nov 2020 12:26:52 +0000
(13:26 +0100)
committer
Laurent Mazet
<mazet@softndesign.org>
Tue, 24 Nov 2020 12:26:52 +0000
(13:26 +0100)
public/trivabble.js
patch
|
blob
|
blame
|
history
diff --git
a/public/trivabble.js
b/public/trivabble.js
index 3ca0cfd36a2a3ba8797b4ee98d36222b5f8fb794..e25ae58e03aef823240ed35631b14cd9be4164c9 100644
(file)
--- a/
public/trivabble.js
+++ b/
public/trivabble.js
@@
-1043,7
+1043,7
@@
if (Object.prototype.hasOwnProperty.call(player, "score")) {
const scoreCell = getScoreCell(playerName);
- if (
scoreCell.textContent !
= player.score) {
+ if (
parseInt(scoreCell.textContent) !=
= player.score) {
currentTilePlayed = {};
}
scoreCell.textContent = player.score;