diff options
author | Hakim El Hattab | 2012-07-20 22:09:56 -0400 |
---|---|---|
committer | Hakim El Hattab | 2012-07-20 22:09:56 -0400 |
commit | 7f9662edab1c7d25c3a74506e365684e0befb7c3 (patch) | |
tree | f06827dd85d42c85a9a9806950b5516e4aa91a98 /js | |
parent | 7b53ff0b9d526c3270fa52cf13d0f9f6ff0496d3 (diff) |
null check progress DOM element even if it's configured to be on
Diffstat (limited to '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'; } |