don't show message buttons if there aren't any
This commit is contained in:
parent
4ca1358758
commit
900af00e37
2 changed files with 6 additions and 2 deletions
|
@ -532,7 +532,9 @@ class Message extends SnowFlake {
|
|||
};
|
||||
}
|
||||
console.log(buttons);
|
||||
this.div.append(buttons);
|
||||
if (buttons.childNodes.length !== 0) {
|
||||
this.div.append(buttons);
|
||||
}
|
||||
}
|
||||
};
|
||||
this.div.onmouseleave = _ => {
|
||||
|
|
|
@ -527,7 +527,9 @@ class Message extends SnowFlake{
|
|||
}
|
||||
}
|
||||
console.log(buttons);
|
||||
this.div.append(buttons);
|
||||
if(buttons.childNodes.length!==0){
|
||||
this.div.append(buttons);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.div.onmouseleave=_=>{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue