diff --git a/index.js b/index.js index 94a856a..7c025d7 100644 --- a/index.js +++ b/index.js @@ -199,7 +199,7 @@ async function pageUpdate() { } - function get_img() { + function get_img(activity) { var fn = sha256(get_img_url(activity)) var fp = path.join(staticpath, 'cached', fn) @@ -231,7 +231,7 @@ async function pageUpdate() { var currentPercent = (Date.now() - activity.timestamps.start) / (activity.timestamps.end - activity.timestamps.start) * 100 addedHTML += `
- +

Listening to ${activity.name}
Song: ${activity.details || " "} @@ -272,7 +272,7 @@ async function pageUpdate() { addedHTML += `

- +

Playing ${activity.name}
${(activity.details || activity.assets.large_text || " ")} @@ -293,7 +293,7 @@ async function pageUpdate() { addedHTML += `

- +

${activity.name}
${(activity.details || activity.assets.large_text || " ")}