This commit is contained in:
parent
2ed3dddf8b
commit
0613cb03c6
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
// @namespace https://git.euph.dev/Snoweuph
|
||||
// @match https://army-forge.onepagerules.com/view*
|
||||
// @grant none
|
||||
// @version 1.0.4
|
||||
// @version 1.0.5
|
||||
// @author Snoweuph
|
||||
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
|
||||
// @require https://html2canvas.hertzen.com/dist/html2canvas.min.js
|
||||
|
@ -47,7 +47,7 @@ function generateCards() {
|
|||
|
||||
html2canvas(card, { scale: 15, backgroundColor: null }).then((canvas) => {
|
||||
const link = document.createElement("a");
|
||||
link.download = + ".png";
|
||||
link.download = title + ".png";
|
||||
link.href = canvas.toDataURL();
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
|
|
Loading…
Reference in a new issue