|
@@ -545,10 +545,12 @@ class DPlayer {
|
|
|
clearTimeout(this.noticeTime);
|
|
|
}
|
|
|
this.events.trigger('notice_show', text);
|
|
|
- this.noticeTime = setTimeout(() => {
|
|
|
- this.template.notice.style.opacity = 0;
|
|
|
- this.events.trigger('notice_hide');
|
|
|
- }, time);
|
|
|
+ if (time > 0) {
|
|
|
+ this.noticeTime = setTimeout(() => {
|
|
|
+ this.template.notice.style.opacity = 0;
|
|
|
+ this.events.trigger('notice_hide');
|
|
|
+ }, time);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
resize () {
|