Verified Commit ad10e108 authored by Thibaut Broggi's avatar Thibaut Broggi
Browse files

Fix random signature

parent d7e39286
Pipeline #1309 passed with stage
in 0 seconds
......@@ -138,7 +138,7 @@ document.getElementById('randomize').onclick = function(e) {
randomElement('input[name="font"]').checked = true;
randomElement('input[name="icon"]').checked = true;
document.getElementById('step2value').value = document.getElementById('step2value').innerText = sampleTexts[Math.trunc(Math.random() * sampleTexts.length)];
if (document.getElementById('signature').value.match(/\t$/))
if (document.getElementById('signature').value.match(/(\t$|^$)/))
document.getElementById('signature').value = sampleSignatures[Math.trunc(Math.random() * sampleSignatures.length)];
draw();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment