made data-background attribute work with .webp #3200
							parent
							
								
									9415ad5d7f
								
							
						
					
					
						commit
						286d5ef561
					
				
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -150,7 +150,7 @@ export default class Backgrounds { | |||
| 
 | ||||
| 		if( data.background ) { | ||||
| 			// Auto-wrap image urls in url(...)
 | ||||
| 			if( /^(http|file|\/\/)/gi.test( data.background ) || /\.(svg|png|jpg|jpeg|gif|bmp)([?#\s]|$)/gi.test( data.background ) ) { | ||||
| 			if( /^(http|file|\/\/)/gi.test( data.background ) || /\.(svg|png|jpg|jpeg|gif|bmp|webp)([?#\s]|$)/gi.test( data.background ) ) { | ||||
| 				slide.setAttribute( 'data-background-image', data.background ); | ||||
| 			} | ||||
| 			else { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 hakimel
						hakimel