Commit 772fa030 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

make it possible to disable hash change listener with respondToHashChanges: false

parent 3a032a83
This diff is collapsed.
This diff is collapsed.
......@@ -62,6 +62,9 @@ export default {
// page/copying the URL will return you to the same slide
hash: false,
// Flags if we should monitor the hash and change slides accordingly
respondToHashChanges: true,
// Push each slide change to the browser history. Implies `hash: true`
history: false,
......
......@@ -487,8 +487,8 @@ export default function( revealElement, options ) {
if( config.touch ) touch.bind();
if( config.keyboard ) keyboard.bind();
if( config.progress ) progress.bind();
if( config.respondToHashChanges ) location.bind();
controls.bind();
location.bind();
dom.slides.addEventListener( 'transitionend', onTransitionEnd, false );
dom.pauseOverlay.addEventListener( 'click', resume, false );
......
Supports Markdown
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