aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 31b9bf1..593c32d 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -226,8 +226,12 @@ var Reveal = (function(){
dom.progress.style.display = 'block';
}
+ // Load the theme in the config, if it's not already loaded
if( config.theme && dom.theme ) {
- dom.theme.setAttribute( 'href', 'css/theme/' + config.theme + '.css' );
+ var themeURL = 'css/theme/' + config.theme + '.css';
+ if( dom.theme.getAttribute( 'href' ) !== themeURL ) {
+ dom.theme.setAttribute( 'href', themeURL );
+ }
}
if( config.transition !== 'default' ) {