Fix formatting on songs with funke
This commit is contained in:
parent
5dddfcc9e0
commit
b58e3afc88
1 changed files with 4 additions and 2 deletions
|
@ -139,6 +139,8 @@ module.exports = {
|
||||||
var text1 = onlyIfExists("<br><span style='font-size: 1.3rem;'>" + activity.song + "</span>", activity.song) || activity.details
|
var text1 = onlyIfExists("<br><span style='font-size: 1.3rem;'>" + activity.song + "</span>", activity.song) || activity.details
|
||||||
var text2 = onlyIfExists("By: " + activity.artist, activity.artist) || activity.state
|
var text2 = onlyIfExists("By: " + activity.artist, activity.artist) || activity.state
|
||||||
var text3 = onlyIfExists("On: " + activity.album, activity.album != activity.song && activity.album)
|
var text3 = onlyIfExists("On: " + activity.album, activity.album != activity.song && activity.album)
|
||||||
|
console.log(text3)
|
||||||
|
text3 = "bruh"
|
||||||
|
|
||||||
addedHTML += `
|
addedHTML += `
|
||||||
<div class="chip activity grid-child">
|
<div class="chip activity grid-child">
|
||||||
|
@ -147,8 +149,8 @@ module.exports = {
|
||||||
<p style="text-align: left; font-size: 1.15rem;">
|
<p style="text-align: left; font-size: 1.15rem;">
|
||||||
<span style="font-size: 1.6rem;">${activity.name}</span>
|
<span style="font-size: 1.6rem;">${activity.name}</span>
|
||||||
${onlyIfExists("<br>" + text1, text1)}
|
${onlyIfExists("<br>" + text1, text1)}
|
||||||
${onlyIfExists("<br>" + text2, text2)}
|
${onlyIfExists("<br>" + makeCompat(text2), text2)}
|
||||||
${onlyIfExists("<br>" + text3, text3)}
|
${onlyIfExists("<br>" + makeCompat(text3), text3)}
|
||||||
${onlyIfExists("<br>" + activityTime(), activityTime())}
|
${onlyIfExists("<br>" + activityTime(), activityTime())}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue