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

This commit is contained in:
hakimel committed 2022-03-09 11:10:26 +01:00
1 parent 2a239aedca
commit 37861335a2
6 files changed
+17 -14

No files matched your search

+3
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,