Improved time upkeep for playing and pausing.

This commit is contained in:
Tom
2024-12-05 18:52:36 +00:00
parent 5100d18ac6
commit 0bfbc36952
2 changed files with 31 additions and 34 deletions

View File

@ -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;