diff options
author | Julien Dessaux | 2022-10-12 18:08:28 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-10-12 18:08:28 +0200 |
commit | e8a1334e07776e17603217f5db37571a4b294994 (patch) | |
tree | fb4b6428338c4c0bdcaa901377bf9659dfad3e01 | |
parent | Prevent cursor removal (diff) | |
download | jeux-de-mots-e8a1334e07776e17603217f5db37571a4b294994.tar.gz jeux-de-mots-e8a1334e07776e17603217f5db37571a4b294994.tar.bz2 jeux-de-mots-e8a1334e07776e17603217f5db37571a4b294994.zip |
Fixed error following refactoring
-rw-r--r-- | index.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -145,7 +145,7 @@ let CW = function(){ let elt = document.getElementById(["s", y, "_", x].join("")); if (letter !== "") { elt.className = "letter"; - elt.innerHTML = [letter, "<div class=\"points\">", points[letter], "</div>"].join(""); + elt.innerHTML = [letter, "<div class=\"points\">", letters[letter].points, "</div>"].join(""); // we also remove the letter from the pool letters[letter].count--; total_remaining_letters--; @@ -159,7 +159,7 @@ let CW = function(){ let elt = document.getElementById(["l", x].join("")); if (letter !== undefined) { elt.className = "letter"; - elt.innerHTML = [letter, "<div class=\"points\">", points[letter], "</div>"].join(""); + elt.innerHTML = [letter, "<div class=\"points\">", letters[letter].points, "</div>"].join(""); // we remove the letter from the pool letters[letter].count--; total_remaining_letters--; |