From ee1e899b39a5a7e6fbf80e3ca5ea00a1e0ffb5cf Mon Sep 17 00:00:00 2001 From: wukko Date: Thu, 16 May 2024 22:36:53 +0600 Subject: [PATCH] web/cobalt.js: fix celebration emoji loading --- src/front/cobalt.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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( - ``, + `${aboutButtonBackup.split('> ')[0]}>`, j.text ) }