remove global var listNoms
This commit is contained in:
parent
310edd32de
commit
b84a93fead
@ -244,8 +244,6 @@
|
||||
regen()
|
||||
})
|
||||
|
||||
listNoms = []
|
||||
|
||||
function trouveMot(lettre, position) {
|
||||
lettre = lettre.toUpperCase()
|
||||
position = position? 1: 0
|
||||
@ -254,7 +252,7 @@
|
||||
|
||||
function regen() {
|
||||
if (sigleInput.value.length) {
|
||||
listNoms = Array.from(sigleInput.value).map((lettre, position) => trouveMot(lettre, position))
|
||||
let listNoms = Array.from(sigleInput.value).map((lettre, position) => trouveMot(lettre, position))
|
||||
alertDiv.innerHTML = `
|
||||
<div class="fr-alert fr-alert--info">
|
||||
<p>Suggestion :</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user