Log completed frame with direction and timing.
This commit is contained in:
parent
2543a24b32
commit
0cde3b7864
|
@ -408,6 +408,7 @@
|
|||
}
|
||||
web.frameSuccess = function (res) {
|
||||
document.getElementById('frame').blur();
|
||||
console.log(`Frame ${res.dir ? 'forward' : 'backward'} took ${res.len}ms`)
|
||||
if (res.dir === true) {
|
||||
incCounter(1);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue