mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
parent
a574cedea3
commit
cd689ea3c7
1 changed files with 5 additions and 2 deletions
|
@ -229,8 +229,11 @@ export default {
|
|||
var request = store.get(this.video.id);
|
||||
request.onsuccess = function (event) {
|
||||
var video = event.target.result;
|
||||
if (video?.currentTime) {
|
||||
videoEl.currentTime = video.currentTime;
|
||||
const currentTime = video?.currentTime;
|
||||
if (currentTime) {
|
||||
if (currentTime < component.video.duration * 0.9) {
|
||||
videoEl.currentTime = currentTime;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue