tidy up code for #2940
This commit is contained in:
parent
a112712f12
commit
236d3e3722
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -102,13 +102,9 @@ export default class SlideContent {
|
||||||
|
|
||||||
// Images
|
// Images
|
||||||
if( backgroundImage ) {
|
if( backgroundImage ) {
|
||||||
let backgroundString = '';
|
backgroundContent.style.backgroundImage = backgroundImage.split( ',' ).map( background => {
|
||||||
backgroundImage.split(',').forEach(background => {
|
return `url(${encodeURI(background.trim())})`;
|
||||||
backgroundString = backgroundString.concat(
|
}).join( ',' );
|
||||||
'url(' + encodeURI(background.trim()) + '),'
|
|
||||||
);
|
|
||||||
});
|
|
||||||
backgroundContent.style.backgroundImage = backgroundString.substr(0, backgroundString.length - 1);
|
|
||||||
}
|
}
|
||||||
// Videos
|
// Videos
|
||||||
else if ( backgroundVideo && !this.Reveal.isSpeakerNotes() ) {
|
else if ( backgroundVideo && !this.Reveal.isSpeakerNotes() ) {
|
||||||
|
|
Loading…
Reference in New Issue