diff --git a/js/gameEngine.js b/js/gameEngine.js
index 787f41a6..abaca8ef 100644
--- a/js/gameEngine.js
+++ b/js/gameEngine.js
@@ -287,7 +287,7 @@ function add_cb(id, name, main, indata = '') {
${unleft}
${name}
- | ${unright}
`;
+ ${unright}${$("#chat_menu").html()}`;
if (!$(`#canal${id}`).html()) {
ch.innerHTML = `${indata}
`;
@@ -650,8 +650,12 @@ function blueTextSee(id) {
// 4.6
function open_clear_work(symbId, count, className) {
- top.document.getElementById(`${symbId}db${count}`).className = className;
- top.document.getElementById(`canal${cb_date[count]}`).style.display = 'none';
+ if (top.document.getElementById(`${symbId}db${count}`) != null) {
+ top.document.getElementById(`${symbId}db${count}`).className = className;
+ }
+ if (top.document.getElementById(`canal${cb_date[count]}`) != null) {
+ top.document.getElementById(`canal${cb_date[count]}`).style.display = 'none';
+ }
}
function open_clear_cb() {
@@ -712,7 +716,9 @@ function open_cb(id, ed) {
top.document.getElementById(`ldb${(id - 1)}`).className = 'zbtn2r2';
}
}
- top.document.getElementById(`canal${cb_date[id]}`).style.display = '';
+ if (top.document.getElementById(`canal${cb_date[id]}`) != null) {
+ top.document.getElementById(`canal${cb_date[id]}`).style.display = '';
+ }
cb_select = id;
}
falseBlue(cb_select);