fix: get btn container

This commit is contained in:
Xmader 2020-11-27 11:57:13 -05:00
parent 935b56e4d2
commit 1f62f47dc8
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import btnListCss from './btn.css'
type BtnElement = HTMLButtonElement
const getBtnContainer = (): HTMLDivElement => {
const container = document.querySelectorAll('aside>section>section')[0]
const container = document.querySelectorAll('section>section>section>section')[0]
const btnParent = [...container.children].find((div) => {
const b = div.querySelector('button, .button')
const text = b ? b.outerHTML.replace(/\s/g, '') : ''