Do not fail on other kinds of hashes
This commit is contained in:
parent
7f3bf1409e
commit
81cda2145f
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue