diff options
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js index c9e69a8..e0be839 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -155,7 +155,7 @@ var Reveal = (function(){ dom.controls.style.display = 'block'; } - if( config.progress ) { + if( config.progress && dom.progress ) { dom.progress.style.display = 'block'; } @@ -680,7 +680,7 @@ var Reveal = (function(){ } // Update progress if enabled - if( config.progress ) { + if( config.progress && dom.progress ) { dom.progressbar.style.width = ( indexh / ( document.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ).length - 1 ) ) * window.innerWidth + 'px'; } |