diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-03-18 14:14:52 -0700 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-03-18 14:14:52 -0700 |
commit | a77842521e003af8b5f46ff8a34857031221a5e8 (patch) | |
tree | 718605b2dde0dffb00b1d4aa49d04aef68cb3cc9 | |
parent | 7f3bf1409eb3d51f3b741393d41f27e0feafc564 (diff) | |
parent | 81cda2145f9da7024e4f4e1c15186da3e41049d7 (diff) | |
download | fosdem-2018-presentation-a77842521e003af8b5f46ff8a34857031221a5e8.tar fosdem-2018-presentation-a77842521e003af8b5f46ff8a34857031221a5e8.tar.gz |
Merge pull request #20 from Fil/master
reveal.js was failing when the hash was of an unexpected format
-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 ); } |