mirror of
https://github.com/coalaura/whiskr.git
synced 2025-12-02 20:22:52 +00:00
fixed 1 decimal for time
This commit is contained in:
@@ -261,7 +261,7 @@
|
|||||||
this.#_time = make("div", "time");
|
this.#_time = make("div", "time");
|
||||||
|
|
||||||
if (this.#time) {
|
if (this.#time) {
|
||||||
this.#_time.textContent = `${this.#time}s`;
|
this.#_time.textContent = `${this.#time.toFixed(1)}s`;
|
||||||
}
|
}
|
||||||
|
|
||||||
_body.appendChild(this.#_time);
|
_body.appendChild(this.#_time);
|
||||||
@@ -868,7 +868,7 @@
|
|||||||
this.#time = time;
|
this.#time = time;
|
||||||
|
|
||||||
if (this.#time) {
|
if (this.#time) {
|
||||||
this.#_time.textContent = `${this.#time}s`;
|
this.#_time.textContent = `${this.#time.toFixed(1)}s`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user