Merge pull request #2263 from mbotsch/fix-readURL
Fix if-statement in readURL
This commit is contained in:
commit
4ac153c46f
@ -4070,11 +4070,14 @@
|
||||
// Ensure that we're not already on a slide with the same name
|
||||
var isSameNameAsCurrentSlide = currentSlide ? currentSlide.getAttribute( 'id' ) === name : false;
|
||||
|
||||
if( element && !isSameNameAsCurrentSlide ) {
|
||||
// Find the position of the named slide and navigate to it
|
||||
if( element ) {
|
||||
// If the slide exists and is not the current slide...
|
||||
if ( !isSameNameAsCurrentSlide ) {
|
||||
// ...find the position of the named slide and navigate to it
|
||||
var indices = Reveal.getIndices(element);
|
||||
slide(indices.h, indices.v);
|
||||
}
|
||||
}
|
||||
// If the slide doesn't exist, navigate to the current slide
|
||||
else {
|
||||
slide( indexh || 0, indexv || 0 );
|
||||
|
Loading…
Reference in New Issue
Block a user