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" || " "}