mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-22 19:25:16 +00:00
sb bugfix
This commit is contained in:
parent
fdb2f874ac
commit
ae4893a53c
1 changed files with 1 additions and 5 deletions
|
@ -42,7 +42,6 @@ export default {
|
|||
},
|
||||
data: () => ({
|
||||
blocks: [],
|
||||
skipping: false,
|
||||
}),
|
||||
mounted() {
|
||||
let vid = this.video;
|
||||
|
@ -63,12 +62,9 @@ export default {
|
|||
|
||||
if (
|
||||
vidTime >= sponsor.segment[0] &&
|
||||
vidTime <= sponsor.segment[1] &&
|
||||
!this.skipping
|
||||
vidTime <= sponsor.segment[1]
|
||||
) {
|
||||
console.log("Skipping the sponsor");
|
||||
// to avoid jank and jitters
|
||||
this.skipping = true;
|
||||
vid.currentTime = sponsor.segment[1] + 1;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue