mirror of
https://github.com/mmjee/Piped-Material.git
synced 2024-12-06 19:26:36 +01:00
Allow undefined this.sponsors.segments
This commit is contained in:
@@ -305,7 +305,7 @@ export default {
|
||||
}
|
||||
|
||||
const array = ['to right']
|
||||
this.sponsors?.segments.forEach(segment => {
|
||||
this.sponsors?.segments?.forEach(segment => {
|
||||
const start = (segment.segment[0] / this.video.duration) * 100
|
||||
const end = (segment.segment[1] / this.video.duration) * 100
|
||||
let color
|
||||
|
||||
Reference in New Issue
Block a user