Skip to content

Commit 658f92f

Browse files
committed
fix(pic-text.ts): wrong passing of arguments
1 parent 0dee93c commit 658f92f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/generators/pic-text.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ function getPicTextResult(
6868
setOnClick();
6969
});
7070
getPNGButtonElement.addEventListener('click', () => {
71-
utils.downloadPNG(outputNode);
71+
utils.downloadPNG(attribute, outputNode);
7272
});
7373
getSVGButtonElement.addEventListener('click', () => {
74-
utils.downloadSVG(outputNode);
74+
utils.downloadSVG(attribute, outputNode);
7575
});
7676
getCodeButtonElement.addEventListener('click', () => {
7777
utils.copyCodeToClipboard(attribute, outputNode);

0 commit comments

Comments
 (0)