Improved time upkeep for playing and pausing.
This commit is contained in:
@ -2,7 +2,8 @@ class Session {
|
||||
#id = null;
|
||||
#started = null;
|
||||
#current = null;
|
||||
#lastScrobble = null;
|
||||
lastScrobbleTimestamp = 0;
|
||||
lastUpdateTimestamp = 0;
|
||||
pauseDuration = 0;
|
||||
playDuration = 0;
|
||||
|
||||
@ -26,14 +27,6 @@ class Session {
|
||||
get started() {
|
||||
return this.#started;
|
||||
}
|
||||
|
||||
get lastScrobbleTimestamp() {
|
||||
return this.#lastScrobble;
|
||||
}
|
||||
|
||||
set lastScrobbleTimestamp(value) {
|
||||
this.#lastScrobble = value;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Session;
|
Reference in New Issue
Block a user