Log completed frame with direction and timing.

This commit is contained in:
mmcwilliams 2017-11-21 18:15:46 -05:00
parent 2543a24b32
commit 0cde3b7864
1 changed files with 1 additions and 0 deletions

View File

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