Skip to content

Commit

Permalink
Expose preview management functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sestegra committed Feb 13, 2021
1 parent 9c83edb commit 2d050f8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -2461,9 +2461,6 @@ export default function( revealElement, options ) {
// Randomizes the order of slides
shuffle,

// Opens a preview window for the target URL
showPreview,

// Returns an object with the available routes as booleans (left/right/top/bottom)
availableRoutes,

Expand Down Expand Up @@ -2503,6 +2500,10 @@ export default function( revealElement, options ) {
loadSlide: slideContent.load.bind( slideContent ),
unloadSlide: slideContent.unload.bind( slideContent ),

// Preview management
showPreview,
hidePreview: closeOverlay,

// Adds or removes all internal event listeners
addEventListeners,
removeEventListeners,
Expand Down

0 comments on commit 2d050f8

Please sign in to comment.