From 81cda2145f9da7024e4f4e1c15186da3e41049d7 Mon Sep 17 00:00:00 2001 From: Fil Date: Thu, 15 Mar 2012 18:00:26 +0100 Subject: [PATCH] Do not fail on other kinds of hashes --- js/reveal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/reveal.js b/js/reveal.js index ff0c47a4..94fcf37d 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 ); }