Add check to discordrpc.ts
This commit is contained in:
parent
f481b4d894
commit
ab9d209eba
1 changed files with 2 additions and 2 deletions
|
@ -183,8 +183,8 @@ export default class DiscordRPC {
|
|||
] //To change attributes.url => preload/cider-preload.js
|
||||
}
|
||||
|
||||
// Add the timestamp if its playing
|
||||
if (attributes.status) {
|
||||
// Add the timestamp if its playing and people want them
|
||||
if (!this._utils.getStoreValue("general.discordrpc.hide_timestamp") && attributes.status) {
|
||||
activity.startTimestamp = Date.now() - (attributes?.durationInMillis - attributes?.remainingTime)
|
||||
activity.endTimestamp = attributes.endTime
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue