make compat applies to titles as well now
This commit is contained in:
parent
2dcedf0ff7
commit
bb5f3a6bd1
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ function get_img_url(activity, size = "large_image") {
|
|||
return null
|
||||
}
|
||||
|
||||
function makeCompat(string) {
|
||||
function makeCompat(string="") {
|
||||
return string.replaceAll("<", "<").replaceAll(">", ">")
|
||||
}
|
||||
|
||||
|
@ -136,7 +136,7 @@ module.exports = {
|
|||
activity.assets = { "large_text": "", "small_text": "" }
|
||||
}
|
||||
|
||||
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;'>" + makeCompat(activity.song) + "</span>", activity.song) || activity.details
|
||||
var text2 = onlyIfExists("By: " + activity.artist, activity.artist) || activity.state
|
||||
var text3 = onlyIfExists("On: " + activity.album, activity.album != activity.song && activity.album)
|
||||
|
||||
|
|
Loading…
Reference in a new issue