Skip to content

best way to save what you love

web/cobalt.js: fix celebration emoji loading

wukkoee1e899b39a5
diff --git a/src/front/cobalt.js b/src/front/cobalt.js
index ef5b448c..1efe64be 100644
--- a/src/front/cobalt.js
+++ b/src/front/cobalt.js
@@ -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
)
}