fix: если видео идет меньше 10 сек, не запоминать время
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user