修复get.itemtype判断按钮类型

This commit is contained in:
Spmario233 2024-01-12 12:43:15 +08:00
parent 7ff73e8420
commit 8931d4c357
1 changed files with 1 additions and 1 deletions

View File

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