mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix contest broadcast message
This commit is contained in:
1 file changed
+2
-2
@@ -19,7 +19,7 @@ const onmessage = (msg) => {
|
|||||||
<p>${i18n(msg.mdoc.content)}</p>
|
<p>${i18n(msg.mdoc.content)}</p>
|
||||||
</div>`,
|
</div>`,
|
||||||
}).open();
|
}).open();
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
if (msg.mdoc.flag & FLAG_INFO) {
|
if (msg.mdoc.flag & FLAG_INFO) {
|
||||||
if (previous) previous.hide();
|
if (previous) previous.hide();
|
||||||
@@ -28,7 +28,7 @@ const onmessage = (msg) => {
|
|||||||
duration: 3000,
|
duration: 3000,
|
||||||
});
|
});
|
||||||
previous.show();
|
previous.show();
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
if (document.hidden) return false;
|
if (document.hidden) return false;
|
||||||
// Is message
|
// Is message
|
||||||
|
|||||||
Reference in new issue
Block a user