Commit 01a4eef4 authored by Oleg Roschupkin's avatar Oleg Roschupkin

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

parent c1c5b350
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment