Fixed an error that did not work on a page with...

only the Print button
This commit is contained in:
NLOG 2020-03-29 20:51:24 +09:00 committed by GitHub
parent 77017d6205
commit 89dc2ce723
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ const main = () => {
}
const textNode = [...btn.childNodes].find((x) => {
return x.textContent.includes("Download")
return x.textContent.includes("Download") || x.textContent.includes("Print")
})
textNode.textContent = `Download ${name}`