add hide timestamp to rpc code
This commit is contained in:
parent
565ff5c1a6
commit
76a6b14565
1 changed files with 6 additions and 4 deletions
|
@ -223,10 +223,12 @@ export default class DiscordRPC {
|
||||||
] //To change attributes.url => preload/cider-preload.js
|
] //To change attributes.url => preload/cider-preload.js
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the timestamp if its playing
|
// Add the timestamp if its playing and people want them
|
||||||
if (attributes.status) {
|
if (!this._utils.getStoreValue("general.discordrpc.hide_timestamp")) {
|
||||||
this._activity.startTimestamp = Date.now() - (attributes?.durationInMillis - attributes?.remainingTime)
|
if (attributes.status) {
|
||||||
this._activity.endTimestamp = attributes.endTime
|
this._activity.startTimestamp = Date.now() - (attributes?.durationInMillis - attributes?.remainingTime)
|
||||||
|
this._activity.endTimestamp = attributes.endTime
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the user wants to keep the activity when paused
|
// If the user wants to keep the activity when paused
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue