null check background
This commit is contained in:
parent
1391253cb8
commit
fbf999ec81
|
@ -2326,6 +2326,7 @@
|
||||||
// Show the corresponding background element
|
// Show the corresponding background element
|
||||||
var indices = getIndices( slide );
|
var indices = getIndices( slide );
|
||||||
var background = getSlideBackground( indices.h, indices.v );
|
var background = getSlideBackground( indices.h, indices.v );
|
||||||
|
if( background ) {
|
||||||
background.style.display = 'block';
|
background.style.display = 'block';
|
||||||
|
|
||||||
// If the background contains media, load it
|
// If the background contains media, load it
|
||||||
|
@ -2351,6 +2352,7 @@
|
||||||
background.appendChild( video );
|
background.appendChild( video );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2366,7 +2368,9 @@
|
||||||
// Hide the corresponding background element
|
// Hide the corresponding background element
|
||||||
var indices = getIndices( slide );
|
var indices = getIndices( slide );
|
||||||
var background = getSlideBackground( indices.h, indices.v );
|
var background = getSlideBackground( indices.h, indices.v );
|
||||||
|
if( background ) {
|
||||||
background.style.display = 'none';
|
background.style.display = 'none';
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user