Fix highlighting in statuses
This commit is contained in:
parent
263a772e45
commit
2690b28e7b
1 changed files with 3 additions and 2 deletions
|
@ -54,8 +54,7 @@ function converter(html) {
|
||||||
"UPTIME": uptime,
|
"UPTIME": uptime,
|
||||||
"TOPBAR": `<div id="topbar"><h3><a href="/socials">Socials</a></h3></div>`,
|
"TOPBAR": `<div id="topbar"><h3><a href="/socials">Socials</a></h3></div>`,
|
||||||
"DISCORD_USER": username,
|
"DISCORD_USER": username,
|
||||||
"CUSTOM_STATUS": statusText,
|
"CUSTOM_STATUS": statusText
|
||||||
"ACTIVITIES": activityToHTML.activitiesToHTML(lanyardData, cachedImages)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var rpTable = Object.keys(replacers)
|
var rpTable = Object.keys(replacers)
|
||||||
|
@ -76,6 +75,8 @@ function converter(html) {
|
||||||
bodyHTML = bodyHTML.replaceAll("TEMPORARY_REPLACE", `${term}`)
|
bodyHTML = bodyHTML.replaceAll("TEMPORARY_REPLACE", `${term}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bodyHTML = bodyHTML.replaceAll("{ACTIVITIES}", activityToHTML.activitiesToHTML(lanyardData, cachedImages))
|
||||||
|
|
||||||
html = html.substring(0, html.indexOf("<body>")) + bodyHTML + html.substring(html.indexOf("</body>") + 7)
|
html = html.substring(0, html.indexOf("<body>")) + bodyHTML + html.substring(html.indexOf("</body>") + 7)
|
||||||
|
|
||||||
return html
|
return html
|
||||||
|
|
Loading…
Reference in a new issue