0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-22 19:25:16 +00:00

sb bugfix

This commit is contained in:
Nikita Krupin 2022-06-01 14:47:00 -04:00
parent fdb2f874ac
commit ae4893a53c

View file

@ -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;
}
});