Optimizations for screenshot download.
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s

This commit is contained in:
MaxJa4
2024-01-27 14:10:48 +01:00
parent 0f2a11af43
commit 18d7d73005

View File

@@ -103,6 +103,9 @@
link.download = 'InfantrySkill_' + date + '.png';
link.href = canvas.toDataURL();
link.click();
}).catch(error => {
alert('Fehler beim Erstellen des Screenshots: ' + error);
}).finally(_ => {
submitBtn.hidden = false;
});
}