This commit is contained in:
Adrien MALINGREY 2023-04-22 15:00:51 +02:00
parent 1ed3394d4e
commit b134b8deb8

8
app.js
View File

@ -475,11 +475,7 @@ class Stats {
} }
get time() { get time() {
return new Date() - this._time return this.timeFormat.format(new Date() - this._time)
}
clock() {
timeCell.innerText = this.timeFormat.format(this.time)
} }
lockDown(nbClearedLines, tSpin) { lockDown(nbClearedLines, tSpin) {
@ -607,7 +603,7 @@ function resume(event) {
} }
function clock() { function clock() {
stats.clock() timeCell.innerText = stats.time
} }
function generate(piece=nextQueue.shift()) { function generate(piece=nextQueue.shift()) {