mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +00:00
web/cobalt.js: fix celebration emoji loading
This commit is contained in:
parent
f9ce6ba8cc
commit
ee1e899b39
|
@ -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