forked from blallo/talk-hm-0x15
null check parentNode in case slide has been detached
This commit is contained in:
parent
ad54b07a84
commit
d9371e21a0
2 changed files with 3 additions and 3 deletions
|
@ -749,7 +749,7 @@ var Reveal = (function(){
|
|||
|
||||
// If we were on a vertical stack, remember what vertical index
|
||||
// it was on so we can resume at the same position when returning
|
||||
if( previousSlide && previousSlide.parentNode.classList.contains( 'stack' ) ) {
|
||||
if( previousSlide && previousSlide.parentNode && previousSlide.parentNode.classList.contains( 'stack' ) ) {
|
||||
setPreviousVerticalIndex( previousSlide.parentNode, indexv );
|
||||
}
|
||||
|
||||
|
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue