Remove extra characters

This commit is contained in:
bingus_violet 2024-08-12 21:33:26 -05:00
parent 33257adc7d
commit 9dd6024d91

View file

@ -297,6 +297,7 @@ function converter(html, dynamic = true) {
"SOCIALS": () => {
if (api.lanyard.socials) {
var socials = api.lanyard.socials
console.log(socials)
var html = ""
var socialsTable = Object.keys(socials)
for (var i = 0; i < socialsTable.length; i++) {
@ -307,7 +308,7 @@ function converter(html, dynamic = true) {
for (var x = 0; x < sitesTable.length; x++) {
var siteName = sitesTable[x]
var siteData = sites[siteName]
html += `<a class="chip" ${onlyIfExists(`href="${siteData.url}"`, siteData.url)}>${siteName}: <span class="noHighlight">${siteData.name.replaceAll("Violet", "{Violet}")}</span></a>`
html += `<a class="chip" ${onlyIfExists(`href="${siteData.url}"`, siteData.url)}>${siteName}: <span class="noHighlight">${siteData.name}</span></a>`
}
html += "</div></div>"