Fixed domnodeinserted listener and moved buttons

This commit is contained in:
2020-04-17 19:33:10 +03:00
parent 708cb72028
commit a1f1a71b7d
3 changed files with 32 additions and 22 deletions

12
controls.js vendored
View File

@@ -19,13 +19,11 @@ function muteBtnHTML(id) {
* @param chatBody {HTMLElement}
* @return {function(...[*]=)}
*/
function addControls(chatBody) {
return function (event) {
console.log(event);
if (event.target.className === 'im-mess--check fl_l') {
const message = event.target.parentElement;
addControlButton(message)
}
function addControls(event) {
console.log(event);
if (event.target.className === 'im-mess--check fl_l') {
const message = event.target.parentElement;
addControlButton(message)
}
}