Fix buttons

parent e822142b
......@@ -90,7 +90,7 @@ let draw = function() {
ctx.fillText(fillText, width * 0.08, height * 0.2 + fontSize * 1.4);
// Update download button
document.querySelector('#save-image').href = canvas.toDataURL();
document.querySelector('#save-image > a').href = canvas.toDataURL();
// Edit URL
history.replaceState('', '', window.location.pathname + '?'
......@@ -163,8 +163,8 @@ window.addEventListener('load', function() {
document.getElementById('step2value').oninput = draw;
document.getElementById('signature').oninput = draw;
// Remove server calls for random/fb./twtr buttons
let buttons = document.querySelectorAll('button.randomize, button.tweet-button, button.fb-button');
// Remove server calls for random buttons
let buttons = document.querySelectorAll('button.randomize');
for (let i = 0; i < buttons.length; ++i) {
buttons[i].type = "button";
}
......
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