mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-23 14:53:44 +02:00
prevent double-initialization #3696
This commit is contained in:
@@ -130,6 +130,8 @@ export default function( revealElement, options ) {
|
||||
|
||||
if( !revealElement ) throw 'Unable to find presentation root (<div class="reveal">).';
|
||||
|
||||
if( initialized ) throw 'Reveal.js has already been initialized.';
|
||||
|
||||
initialized = true;
|
||||
|
||||
// Cache references to key DOM elements
|
||||
|
Reference in New Issue
Block a user