Fix issue #41 with black screen on "pathname?full" without slide hash.

This commit is contained in:
Oleg Roschupkin 2011-07-21 21:28:06 +09:00
parent c1c5b35091
commit 01a4eef423
1 changed files with 7 additions and 1 deletions

View File

@ -82,8 +82,14 @@
window.addEventListener('DOMContentLoaded', function () {
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();
updateProgress(getCurrentSlideNumber());
}
}, false);