mirror of
https://github.com/Noratrieb/slides.git
synced 2026-01-14 16:35:07 +01:00
add getSlidePath API method, update URL tests to work with new replaceState throttle
This commit is contained in:
parent
2a239aedca
commit
37861335a2
6 changed files with 17 additions and 14 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue