Optimizations for screenshot download.
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s
This commit is contained in:
@@ -103,6 +103,9 @@
|
|||||||
link.download = 'InfantrySkill_' + date + '.png';
|
link.download = 'InfantrySkill_' + date + '.png';
|
||||||
link.href = canvas.toDataURL();
|
link.href = canvas.toDataURL();
|
||||||
link.click();
|
link.click();
|
||||||
|
}).catch(error => {
|
||||||
|
alert('Fehler beim Erstellen des Screenshots: ' + error);
|
||||||
|
}).finally(_ => {
|
||||||
submitBtn.hidden = false;
|
submitBtn.hidden = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user