diff options
author | Dougal J. Sutherland <dougal@gmail.com> | 2018-01-21 18:03:48 +0000 |
---|---|---|
committer | Dougal J. Sutherland <dougal@gmail.com> | 2018-01-21 18:03:48 +0000 |
commit | d68423f310cc680352b561af3e975230e2ff54b1 (patch) | |
tree | a4391b3629ad3f5154fbc5ed9c40cf0a0d26e541 | |
parent | 260f28792644055998c7237cf879ec2a9ffe857e (diff) | |
download | perl-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.js | 5 |
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 ) { |