Verified Commit 62944ad4 authored by Thibaut Broggi's avatar Thibaut Broggi
Browse files

Fix multiple-drawing on "random"

parent e2ae05a4
......@@ -114,8 +114,8 @@ let randomElement = function(selector) {
}
document.getElementById('randomize').onclick = function(e) {
randomElement('input[name="bg-color"]').click();
randomElement('input[name="fg-color"]').click();
randomElement('input[name="font"]').click();
randomElement('input[name="bg-color"]').checked = true;
randomElement('input[name="fg-color"]').checked = true;
randomElement('input[name="font"]').checked = true;
draw();
}
Supports Markdown
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