From 89dc2ce723282f12417ed7b2fbe5e8a4fc0bad7b Mon Sep 17 00:00:00 2001 From: NLOG Date: Sun, 29 Mar 2020 20:51:24 +0900 Subject: [PATCH] Fixed an error that did not work on a page with... only the Print button --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 2e21aa0..9de07b3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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}`