diff --git a/index.js b/index.js index 4731d4b..47d01c4 100644 --- a/index.js +++ b/index.js @@ -114,9 +114,6 @@ function pageUpdate() { debounce = true } function get_img() { - if (activity.name in activityImages) { - return decodeURIComponent(activityImages[activity.name]) - } if ("assets" in activity) { var image = undefined @@ -135,6 +132,14 @@ function pageUpdate() { } } } + + if (!image) { + if (activity.name in activityImages) { + return decodeURIComponent(activityImages[activity.name]) + } else { + return decodeURIComponent(`https://cdn.discordapp.com/app-assets/680748054038577165/680775885317472448.png`) + } + } } function songStats() { var html = `` @@ -151,7 +156,6 @@ function pageUpdate() { return html } if (activity.type == 2) { - if (get_img()) { addedHTML += `