From 58cd2ac6437d5aeb5c469b1dac01c3a0b9b30259 Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Mon, 1 Jan 2024 23:22:54 -0600 Subject: [PATCH] quick fix --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index c35bc3e..9eaaab0 100644 --- a/index.js +++ b/index.js @@ -144,6 +144,8 @@ function pageUpdate() { } } else if (activity.type == 0) { if (get_img()) { + var time = activity.timestamps.start || activity.created_at + console.log(activity) addedHTML += `
@@ -151,7 +153,7 @@ function pageUpdate() { Playing ${activity.name}
${activity.details || activity.assets.large_text || " "}
${activity.state || activity.assets.small_text || " "} -
${Math.floor(((Date.now() - activity.timestamps.start) / 1000 / 60)).toString() + " Minutes" || " "} +
${Math.floor(((Date.now() - time) / 1000 / 60)).toString() + " Minutes" || " "}