remove theme config option #1061
This commit is contained in:
		
							
								
								
									
										15
									
								
								js/reveal.js
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								js/reveal.js
									
									
									
									
									
								
							| @@ -121,9 +121,6 @@ | ||||
| 			// Focuses body when page changes visiblity to ensure keyboard shortcuts work | ||||
| 			focusBodyOnPageVisibilityChange: true, | ||||
|  | ||||
| 			// Theme (see /css/theme) | ||||
| 			theme: null, | ||||
|  | ||||
| 			// Transition style | ||||
| 			transition: 'default', // none/fade/slide/convex/concave/zoom | ||||
|  | ||||
| @@ -870,18 +867,6 @@ | ||||
| 			} ); | ||||
| 		} | ||||
|  | ||||
| 		// Load the theme in the config, if it's not already loaded | ||||
| 		if( config.theme && dom.theme ) { | ||||
| 			var themeURL = dom.theme.getAttribute( 'href' ); | ||||
| 			var themeFinder = /[^\/]*?(?=\.css)/; | ||||
| 			var themeName = themeURL.match(themeFinder)[0]; | ||||
|  | ||||
| 			if(  config.theme !== themeName ) { | ||||
| 				themeURL = themeURL.replace(themeFinder, config.theme); | ||||
| 				dom.theme.setAttribute( 'href', themeURL ); | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		sync(); | ||||
|  | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user