File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1235,7 +1235,7 @@ export default class InterstitialsController
12351235 if ( ! schedule ) {
12361236 return ;
12371237 }
1238- const scheduledItem = index >= 0 ? scheduleItems [ index ] : null ;
1238+ const scheduledItem = scheduleItems [ index ] || null ;
12391239 const media = this . primaryMedia ;
12401240 // Cleanup out of range Interstitials
12411241 const playerQueue = this . playerQueue ;
@@ -1354,7 +1354,7 @@ export default class InterstitialsController
13541354 if ( this . shouldPlay ) {
13551355 playWithCatch ( player . media ) ;
13561356 }
1357- } else if ( scheduledItem !== null ) {
1357+ } else if ( scheduledItem ) {
13581358 this . resumePrimary ( scheduledItem , index , currentItem ) ;
13591359 if ( this . shouldPlay ) {
13601360 playWithCatch ( this . hls . media ) ;
You can’t perform that action at this time.
0 commit comments