mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 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>
|
||||
</div>`,
|
||||
}).open();
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
if (msg.mdoc.flag & FLAG_INFO) {
|
||||
if (previous) previous.hide();
|
||||
@@ -28,7 +28,7 @@ const onmessage = (msg) => {
|
||||
duration: 3000,
|
||||
});
|
||||
previous.show();
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
if (document.hidden) return false;
|
||||
// Is message
|
||||
|
||||
Reference in new issue
Block a user