From 4ead0fd52c05fbd1264d748f83cecc22d2eb7d0e Mon Sep 17 00:00:00 2001 From: Xmader Date: Sun, 29 Mar 2020 17:31:33 -0400 Subject: [PATCH] fix the icon of the download btn --- src/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.ts b/src/main.ts index 9de07b3..58243e6 100644 --- 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) => {