mirror of
https://github.com/anatolykopyl/vk-mute.git
synced 2026-03-26 21:05:16 +00:00
Fixed domnodeinserted listener and moved buttons
This commit is contained in:
12
controls.js
vendored
12
controls.js
vendored
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user