From 8931d4c357f43e69957704ff9ae14a4c52359fe0 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Fri, 12 Jan 2024 12:43:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dget.itemtype=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=8C=89=E9=92=AE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/get/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noname/get/index.js b/noname/get/index.js index 1c74adaf7..df87b1d4e 100644 --- a/noname/get/index.js +++ b/noname/get/index.js @@ -1645,7 +1645,7 @@ export class Get extends Uninstantable { } } } - if (obj instanceof lib.element.Button) return 'button'; + if (obj instanceof lib.element.Button || (obj instanceof HTMLDivElement && obj.classList.contains('button'))) return 'button'; if (obj instanceof lib.element.Card) return 'card'; if (obj instanceof lib.element.Player) return 'player'; if (obj instanceof lib.element.Dialog) return 'dialog';