web/cobalt.js: fix celebration emoji loading
This commit is contained in:
parent
f9ce6ba8cc
commit
ee1e899b39
1 changed files with 1 additions and 8 deletions
|
@ -563,16 +563,9 @@ const loadCelebrationsEmoji = async() => {
|
|||
let aboutButtonBackup = eid("about-footer").innerHTML;
|
||||
try {
|
||||
let j = await fetch(`/onDemand?blockId=1`).then(r => r.json()).catch(() => {});
|
||||
|
||||
if (j && j.status === "success" && j.text) {
|
||||
eid("about-footer").innerHTML = eid("about-footer").innerHTML.replace(
|
||||
`<img class="emoji"
|
||||
draggable="false"
|
||||
height="22"
|
||||
width="22
|
||||
alt="🐲"
|
||||
src="emoji/dragon_face.svg"
|
||||
loading="lazy">`,
|
||||
`${aboutButtonBackup.split('> ')[0]}>`,
|
||||
j.text
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue