From 8856835be43b38a2f8ce2187be195c039066c685 Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Thu, 30 Nov 2023 20:18:56 -0600 Subject: [PATCH] decode the god damn url components !!! --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 146a0bf..ddbe488 100644 --- a/index.js +++ b/index.js @@ -99,11 +99,11 @@ function pageUpdate() { } if (image) { if (image.includes("https/")) { - return 'https://' + image.substr(image.indexOf('https/') + 6, image.length) + return decodeURIComponent('https://' + image.substr(image.indexOf('https/') + 6, image.length)) } else if (image.includes("spotify")) { - return '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 { - return `https://cdn.discordapp.com/app-assets/${activity.application_id}/${image}.png` + return decodeURIComponent(`https://cdn.discordapp.com/app-assets/${activity.application_id}/${image}.png`) } } }