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) => {