Fix issue #41 with black screen on "pathname?full" without slide hash.
This commit is contained in:
parent
c1c5b35091
commit
01a4eef423
|
@ -82,8 +82,14 @@
|
||||||
|
|
||||||
window.addEventListener('DOMContentLoaded', function () {
|
window.addEventListener('DOMContentLoaded', function () {
|
||||||
if (!isSlideListMode()) {
|
if (!isSlideListMode()) {
|
||||||
updateProgress(getCurrentSlideNumber());
|
// "?full" is present without slide hash so we should display first
|
||||||
|
// slide
|
||||||
|
if ( -1 === getCurrentSlideNumber() ) {
|
||||||
|
history.replaceState(null, null, url.pathname + '?full' + getSlideHashByNumber( 0 ) );
|
||||||
|
}
|
||||||
|
|
||||||
enterSingleSlideMode();
|
enterSingleSlideMode();
|
||||||
|
updateProgress(getCurrentSlideNumber());
|
||||||
}
|
}
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue