From 1f62f47dc882079915ce1675f961ba2733497639 Mon Sep 17 00:00:00 2001 From: Xmader Date: Fri, 27 Nov 2020 11:57:13 -0500 Subject: [PATCH] fix: get btn container --- src/btn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/btn.ts b/src/btn.ts index c0b69e3..63edfc5 100644 --- a/src/btn.ts +++ b/src/btn.ts @@ -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, '') : ''