diff options
author | Fil <fil@rezo.net> | 2012-03-15 18:00:26 +0100 |
---|---|---|
committer | Fil <fil@rezo.net> | 2012-03-15 18:00:26 +0100 |
commit | 81cda2145f9da7024e4f4e1c15186da3e41049d7 (patch) | |
tree | 718605b2dde0dffb00b1d4aa49d04aef68cb3cc9 /js | |
parent | 7f3bf1409eb3d51f3b741393d41f27e0feafc564 (diff) | |
download | perl-software-in-gnu-guix-81cda2145f9da7024e4f4e1c15186da3e41049d7.tar perl-software-in-gnu-guix-81cda2145f9da7024e4f4e1c15186da3e41049d7.tar.gz |
Do not fail on other kinds of hashes
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js index ff0c47a..94fcf37 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -528,8 +528,8 @@ var Reveal = (function(){ var bits = window.location.hash.slice(2).split('/'); // Read the index components of the hash - indexh = bits[0] ? parseInt( bits[0] ) : 0; - indexv = bits[1] ? parseInt( bits[1] ) : 0; + indexh = parseInt( bits[0] ) || 0 ; + indexv = parseInt( bits[1] ) || 0 ; navigateTo( indexh, indexv ); } |