aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDougal J. Sutherland <dougal@gmail.com>2018-01-21 18:03:48 +0000
committerDougal J. Sutherland <dougal@gmail.com>2018-01-21 18:03:48 +0000
commitd68423f310cc680352b561af3e975230e2ff54b1 (patch)
treea4391b3629ad3f5154fbc5ed9c40cf0a0d26e541
parent260f28792644055998c7237cf879ec2a9ffe857e (diff)
downloadperl-software-in-gnu-guix-d68423f310cc680352b561af3e975230e2ff54b1.tar
perl-software-in-gnu-guix-d68423f310cc680352b561af3e975230e2ff54b1.tar.gz
fix fragment handling when desired fragment is 0
-rw-r--r--js/reveal.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 8edf66a..14b3685 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -3716,7 +3716,10 @@
v = parseInt( bits[1], 10 ) || 0,
f;
if( config.fragmentInURL ) {
- f = parseInt( bits[2], 10 ) || undefined;
+ f = parseInt( bits[2], 10 );
+ if( isNaN( f ) ) {
+ f = undefined;
+ }
}
if( h !== indexh || v !== indexv || f !== undefined ) {