mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-01 12:46:07 +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;
|
let aboutButtonBackup = eid("about-footer").innerHTML;
|
||||||
try {
|
try {
|
||||||
let j = await fetch(`/onDemand?blockId=1`).then(r => r.json()).catch(() => {});
|
let j = await fetch(`/onDemand?blockId=1`).then(r => r.json()).catch(() => {});
|
||||||
|
|
||||||
if (j && j.status === "success" && j.text) {
|
if (j && j.status === "success" && j.text) {
|
||||||
eid("about-footer").innerHTML = eid("about-footer").innerHTML.replace(
|
eid("about-footer").innerHTML = eid("about-footer").innerHTML.replace(
|
||||||
`<img class="emoji"
|
`${aboutButtonBackup.split('> ')[0]}>`,
|
||||||
draggable="false"
|
|
||||||
height="22"
|
|
||||||
width="22
|
|
||||||
alt="🐲"
|
|
||||||
src="emoji/dragon_face.svg"
|
|
||||||
loading="lazy">`,
|
|
||||||
j.text
|
j.text
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue