Remove extra lines
This commit is contained in:
parent
f9fa5f03ac
commit
3f87946f89
2 changed files with 2 additions and 6 deletions
|
@ -15,7 +15,6 @@ function get_img_url(activity, size = "large_image") {
|
||||||
} else if (image.includes("spotify")) {
|
} else if (image.includes("spotify")) {
|
||||||
return decodeURIComponent('https://i.scdn.co/image/' + image.substr(image.indexOf('spotify:') + 8, image.length))
|
return decodeURIComponent('https://i.scdn.co/image/' + image.substr(image.indexOf('spotify:') + 8, image.length))
|
||||||
} else {
|
} else {
|
||||||
console.log(decodeURIComponent('https://cdn.discordapp.com/app-assets/' + activity.application_id + "/" + image + ".png"))
|
|
||||||
return decodeURIComponent('https://cdn.discordapp.com/app-assets/' + activity.application_id + "/" + image + ".png")
|
return decodeURIComponent('https://cdn.discordapp.com/app-assets/' + activity.application_id + "/" + image + ".png")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +28,6 @@ function get_img_url(activity, size = "large_image") {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function timeFormatter(seconds) {
|
function timeFormatter(seconds) {
|
||||||
seconds = Math.ceil(seconds)
|
seconds = Math.ceil(seconds)
|
||||||
var minutes = Math.floor(seconds / 60)
|
var minutes = Math.floor(seconds / 60)
|
||||||
|
|
|
@ -171,11 +171,9 @@ function get_img_url(activity, size = "large_image") {
|
||||||
} else if (image.includes("spotify")) {
|
} else if (image.includes("spotify")) {
|
||||||
return decodeURIComponent('https://i.scdn.co/image/' + image.substr(image.indexOf('spotify:') + 8, image.length))
|
return decodeURIComponent('https://i.scdn.co/image/' + image.substr(image.indexOf('spotify:') + 8, image.length))
|
||||||
} else {
|
} else {
|
||||||
console.log(decodeURIComponent('https://cdn.discordapp.com/app-assets/' + activity.application_id + "/" + image + ".png"))
|
|
||||||
return decodeURIComponent('https://cdn.discordapp.com/app-assets/' + activity.application_id + "/" + image + ".png")
|
return decodeURIComponent('https://cdn.discordapp.com/app-assets/' + activity.application_id + "/" + image + ".png")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log("ehh ehhhhh", activity)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!image && size == "large_image") {
|
if (!image && size == "large_image") {
|
||||||
|
|
Loading…
Reference in a new issue