mirror of
https://github.com/anatolykopyl/vk-mute.git
synced 2026-03-26 12:55:13 +00:00
Merge branch 'Refactoring_and_fixing' into add_build_process
This commit is contained in:
11
src/dom/controls.js
vendored
11
src/dom/controls.js
vendored
@@ -21,12 +21,11 @@ function muteBtnHTML(id) {
|
||||
* @param chatBody {HTMLElement}
|
||||
* @return {function(...[*]=)}
|
||||
*/
|
||||
export function addControls(chatBody) {
|
||||
return function (event) {
|
||||
if (event.target.className === 'im-mess--check fl_l') {
|
||||
const message = event.target.parentElement;
|
||||
addControlButton(message, chatBody)
|
||||
}
|
||||
function addControls(event) {
|
||||
console.log(event);
|
||||
if (event.target.className === 'im-mess--check fl_l') {
|
||||
const message = event.target.parentElement;
|
||||
addControlButton(message)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -46,4 +46,8 @@
|
||||
/*background: url('chrome-extension://__MSG_@@extension_id__/mute.png') !important;*/
|
||||
background-repeat: no-repeat;
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
.im-mess--actions {
|
||||
margin-right: -30px !important;
|
||||
}
|
||||
Reference in New Issue
Block a user