diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2019-03-25 12:00:46 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2019-03-25 12:00:46 +0100 |
commit | 922d791fd9d74caea9d706dbf39250146082ee62 (patch) | |
tree | d5c1ede0785a174761a69db75bb1381a46bcbc43 /js | |
parent | b8de5e02d21de9389b82d90effd65b1fcd8b5799 (diff) | |
download | perl-software-in-gnu-guix-922d791fd9d74caea9d706dbf39250146082ee62.tar perl-software-in-gnu-guix-922d791fd9d74caea9d706dbf39250146082ee62.tar.gz |
fix an error where reveal.js returned a 1> progress number when there were fragments on last slide
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index 65866cc..c3ead43 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -4197,7 +4197,7 @@ } - return pastCount / ( totalCount - 1 ); + return Math.min( pastCount / ( totalCount - 1 ), 1 ); } |