musescore-downloader

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 4ead0fd52c05fbd1264d748f83cecc22d2eb7d0e
parent 2258ed0659ca8dacddd35687a2a55b711c4819e9
Author: Xmader <xmader@outlook.com>
Date:   Sun, 29 Mar 2020 17:31:33 -0400

fix the icon of the download btn

Diffstat:
Msrc/main.ts | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/main.ts b/src/main.ts @@ -85,6 +85,13 @@ const main = () => { const downloadBtn = btnsDiv.querySelector("button, .button") as HTMLElement downloadBtn.onclick = null + // fix the icon of the download btn + // if the `downloadBtn` seleted was a `Print` btn, replace the `print` icon with the `download` icon + const svgPath: SVGPathElement = downloadBtn.querySelector("svg > path") + if(svgPath) { + svgPath.setAttribute("d", "M9.6 2.4h4.8V12h2.784l-5.18 5.18L6.823 12H9.6V2.4zM19.2 19.2H4.8v2.4h14.4v-2.4z") + } + const imgType = getImgType() || "svg" const sheetImgURLs = Array.from({ length: getPagesNumber(scorePlayer) }).fill(null).map((_, i) => {