fix: btn add
This commit is contained in:
parent
37c8eb3baf
commit
f1555d3db0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue