summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorJulien Dessaux2022-10-12 18:08:28 +0200
committerJulien Dessaux2022-10-12 18:08:28 +0200
commite8a1334e07776e17603217f5db37571a4b294994 (patch)
treefb4b6428338c4c0bdcaa901377bf9659dfad3e01 /index.js
parentPrevent cursor removal (diff)
downloadjeux-de-mots-e8a1334e07776e17603217f5db37571a4b294994.tar.gz
jeux-de-mots-e8a1334e07776e17603217f5db37571a4b294994.tar.bz2
jeux-de-mots-e8a1334e07776e17603217f5db37571a4b294994.zip
Fixed error following refactoring
Diffstat (limited to 'index.js')
-rw-r--r--index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.js b/index.js
index da1167b..c937904 100644
--- a/index.js
+++ b/index.js
@@ -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--;