From 8c30822081c5e0eb5670196f76a8ce7c21536b8c Mon Sep 17 00:00:00 2001 From: Slowlife Date: Sun, 29 Dec 2024 14:54:29 +0000 Subject: [PATCH] refactor: remove un-needed function --- websites/Y/Yandex Music/presence.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/websites/Y/Yandex Music/presence.ts b/websites/Y/Yandex Music/presence.ts index 4013fc8fb613..c3c8a7b61581 100644 --- a/websites/Y/Yandex Music/presence.ts +++ b/websites/Y/Yandex Music/presence.ts @@ -13,15 +13,11 @@ presence.on("UpdateData", async () => { ? navigator.mediaSession.metadata.artwork.at(-1).src : "https://cdn.rcd.gg/PreMiD/websites/Y/Yandex%20Music/assets/logo.png", timePassed = document.querySelector(".progress__left").textContent, - durationString = document.querySelector(".progress__right").textContent, [currentTime, duration] = [ presence.timestampFromFormat(timePassed), - (() => { - return ( - presence.timestampFromFormat(durationString) + - presence.timestampFromFormat(timePassed) - ); - })(), + presence.timestampFromFormat( + document.querySelector(".progress__right").textContent + ) + presence.timestampFromFormat(timePassed), ], [startTimestamp, endTimestamp] = presence.getTimestamps( currentTime,