add getSlidePath API method, update URL tests to work with new replaceState throttle

This commit is contained in:
hakimel
2022-03-09 11:10:11 +01:00
parent 2a239aedca
commit 37861335a2
6 changed files with 17 additions and 14 deletions

View File

@ -2744,6 +2744,9 @@ export default function( revealElement, options ) {
// Helper method, retrieves query string as a key:value map
getQueryHash: Util.getQueryHash,
// Returns the path to the current slide as represented in the URL
getSlidePath: location.getHash.bind( location ),
// Returns reveal.js DOM elements
getRevealElement: () => revealElement,
getSlidesElement: () => dom.slides,