summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2022-10-12 17:59:57 +0200
committerJulien Dessaux2022-10-12 17:59:57 +0200
commit5bd98c99b7cf93303cda21029ee7dc6b15184003 (patch)
treebbcf661f325e22b3ec103406854a417077a1d9ef
parentSimplified the way letters are handled (diff)
downloadjeux-de-mots-5bd98c99b7cf93303cda21029ee7dc6b15184003.tar.gz
jeux-de-mots-5bd98c99b7cf93303cda21029ee7dc6b15184003.tar.bz2
jeux-de-mots-5bd98c99b7cf93303cda21029ee7dc6b15184003.zip
Prevent cursor removal
-rw-r--r--index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.js b/index.js
index eae5fb3..da1167b 100644
--- a/index.js
+++ b/index.js
@@ -35,8 +35,8 @@ let CW = function(){
cursor.direction = "down";
me.innerHTML = "▼";
} else {
- cursor = undefined;
- me.innerHTML = "";
+ cursor.direction = "right";
+ me.innerHTML = "▶";
}
}
};