embed fix 1
This commit is contained in:
parent
ea0a8d963c
commit
8ed79005fd
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,9 @@ class embed{
|
||||||
}
|
}
|
||||||
generateRich(){
|
generateRich(){
|
||||||
const div=document.createElement("div");
|
const div=document.createElement("div");
|
||||||
div.style.backgroundColor="#"+this.json.color.toString(16);
|
if(this.json.color){
|
||||||
|
div.style.backgroundColor="#"+this.json.color.toString(16);
|
||||||
|
}
|
||||||
div.classList.add("embed-color");
|
div.classList.add("embed-color");
|
||||||
|
|
||||||
const embed=document.createElement("div");
|
const embed=document.createElement("div");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue