diff options
-rw-r--r-- | js/reveal.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/js/reveal.js b/js/reveal.js index f5ca21f..8162a17 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2475,13 +2475,10 @@ format = config.slideNumber; } - var totalSlides = getTotalSlides(); - var currentSlide = getSlidePastCount() + 1; - dom.slideNumber.innerHTML = format.replace( /h/g, indexh ) .replace( /v/g, indexv ) - .replace( /c/g, currentSlide ) - .replace( /t/g, totalSlides ); + .replace( /c/g, getSlidePastCount() + 1 ) + .replace( /t/g, getTotalSlides() ); } } |