adding a hyphen to the prefix when it is inserted

master
mb 2 years ago
parent 5c26d9c8bf
commit e856ed6a50

@ -21,7 +21,7 @@ fetch("terms.json")
nn.querySelector(".actor").innerHTML = choice(terms['actor']);
nn.querySelector(".action").innerHTML = choice(terms['action']);
if (randint(0, 2) == 0) {
nn.querySelector(".prefix").innerHTML = choice(terms['prefix']);
nn.querySelector(".prefix").innerHTML = choice(terms['prefix']) + '-';
} else {
nn.querySelector(".prefix").remove();
}

Loading…
Cancel
Save