aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2019-03-25 12:00:46 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2019-03-25 12:00:46 +0100
commit922d791fd9d74caea9d706dbf39250146082ee62 (patch)
treed5c1ede0785a174761a69db75bb1381a46bcbc43
parentb8de5e02d21de9389b82d90effd65b1fcd8b5799 (diff)
downloadperl-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
-rw-r--r--js/reveal.js2
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 );
}