Skip to content

Commit

Permalink
fixe hakimel#2217, add error helper message
Browse files Browse the repository at this point in the history
  • Loading branch information
HMarzban committed Oct 24, 2018
1 parent c35cce5 commit cb52851
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,9 @@
*/
function setupDOM() {

if(dom.slides === null)
throw Error("RevealJs need a html element by class name of 'reveal' for initialize, like: <div class='reveal'></div>");

// Prevent transitions while we're loading
dom.slides.classList.add( 'no-transition' );

Expand Down

0 comments on commit cb52851

Please sign in to comment.