ui: fix contest broadcast message

pull/564/head^2
undefined 1 year ago
parent 5214a021a9
commit 284c2c5cf5
No known key found for this signature in database

@ -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

Loading…
Cancel
Save