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