fix: btn add

This commit is contained in:
Xmader 2020-11-12 09:26:57 -05:00
parent 37c8eb3baf
commit f1555d3db0
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 1 additions and 1 deletions

View File

@ -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