This commit is contained in:
zhw2590582 committed 2021-11-28 14:31:26 +08:00
1 parent 4d73f41e38
commit 9cbfa63584
8 files changed
+20 -21

No files matched your search

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