Don't default to large text & small text

This commit is contained in:
bingus_violet 2024-06-29 20:33:48 -05:00
parent 7f8fdb6b7c
commit 22ec637223

View file

@ -137,11 +137,11 @@ module.exports = {
time = activity.timestamps.start time = activity.timestamps.start
} }
if (!activity.assets) { if (!activity.assets) {
activity.assets = { "large_text": " ", "small_text": " " } activity.assets = { "large_text": "", "small_text": "" }
} }
var text1 = onlyIfExists("<br><span style='font-size: 1.3rem;'>" + activity.song + "</span>", activity.song) || activity.details || activity.assets.large_text 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 || activity.assets.small_text var text2 = onlyIfExists("By: " + activity.artist, activity.artist) || activity.state
var text3 = onlyIfExists("On: " + activity.album, activity.album) var text3 = onlyIfExists("On: " + activity.album, activity.album)
addedHTML += ` addedHTML += `