From f1555d3db0782dc7b1c2d0527faa216b7ae745ba Mon Sep 17 00:00:00 2001 From: Xmader Date: Thu, 12 Nov 2020 09:26:57 -0500 Subject: [PATCH] fix: btn add --- src/btn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/btn.ts b/src/btn.ts index bec0145..e41842d 100644 --- a/src/btn.ts +++ b/src/btn.ts @@ -49,7 +49,7 @@ export class BtnList { const btn = this.getTemplateBtn().cloneNode(true) as HTMLButtonElement const textNode = [...btn.childNodes].find((x) => { - const txt = x.textContent as string + const txt = (x.textContent as string).replace(/\s/g, '') return txt.includes('Download') || txt.includes('Print') }) as HTMLSpanElement