This commit is contained in:
zhw2590582 committed 2021-11-28 14:24:10 +08:00
1 parent 454982ab4f
commit 4d73f41e38
6 files changed
+27 -1

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ export default class Notice {
}
set show(msg) {
if (!msg) return removeClass($player, 'art-notice-show');
const { $player, $noticeInner } = this.art.template;
$noticeInner.innerText = msg instanceof Error ? msg.message.trim() : msg;
addClass($player, 'art-notice-show');