Skip to content

Commit

Permalink
Update presence.ts
Browse files Browse the repository at this point in the history
remove ()
  • Loading branch information
farizrifqi authored Feb 12, 2021
1 parent ced2e6c commit fa9c90a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions websites/V/Viu/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ presence.on("UpdateData", async () => {
presenceData.details = document.querySelector("h1.ep_title").textContent;
presenceData.state = "Movie";
}
(presenceData.smallImageKey = video.paused ? "pause" : "play"),
(presenceData.smallImageText = video.paused ? (await strings).pause : (await strings).play),
(presenceData.startTimestamp = timestamps[0]),
(presenceData.endTimestamp = timestamps[1]);
presenceData.smallImageKey = video.paused ? "pause" : "play";
presenceData.smallImageText = video.paused ? (await strings).pause : (await strings).play;
presenceData.startTimestamp = timestamps[0];
presenceData.endTimestamp = timestamps[1];
if (video.paused) {
delete presenceData.startTimestamp;
delete presenceData.endTimestamp;
Expand Down

0 comments on commit fa9c90a

Please sign in to comment.