mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 16:36:18 -08:00
修复提示语的 timer bug
This commit is contained in:
1 parent
e33934d982
commit
03605262bd
4 files changed
+2
-4
No files matched your search
@@ -2800,7 +2800,6 @@
|
||||
i18nMix(i18n);
|
||||
layers.add({
|
||||
name: 'artplayer-plugin-gif-progress',
|
||||
html: '<div class="artplayer-plugin-gif-progress"></div>',
|
||||
style: {
|
||||
position: 'absolute',
|
||||
top: '0',
|
||||
|
||||
@@ -5275,9 +5275,9 @@
|
||||
$noticeInner = _this$art$template.$noticeInner;
|
||||
setStyle($notice, 'display', 'block');
|
||||
$noticeInner.innerHTML = msg instanceof Error ? msg.message.trim() : msg;
|
||||
clearTimeout(this.timer);
|
||||
|
||||
if (autoHide) {
|
||||
clearTimeout(this.timer);
|
||||
this.timer = setTimeout(function () {
|
||||
_this.hide();
|
||||
}, time);
|
||||
|
||||
Reference in new issue
Block a user