0

fix: если видео идет меньше 10 сек, не запоминать время

This commit is contained in:
2016-03-30 13:03:10 +03:00
parent f7ab3476c6
commit 3d62c5a185

View File

@@ -93,6 +93,7 @@
var tc = $.now(); var tc = $.now();
var sec = Math.floor((tc-tl)/1000); var sec = Math.floor((tc-tl)/1000);
if (sec >= 5) { if (sec >= 5) {
if (Math.floor(player[0].currentTime) <= 10) return;
Cookies.set(path, {time:player[0].currentTime}); Cookies.set(path, {time:player[0].currentTime});
tl = tc; tl = tc;
} }