Merge pull request #12 from nnnlog/patch-1

Fixed an error that did not work on a page with only the Print button
This commit is contained in:
Xmader 2020-03-29 17:18:30 -04:00 committed by GitHub
commit 2258ed0659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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}`