prevent double-initialization #3696

This commit is contained in:
Hakim El Hattab committed 2024-10-25 10:27:54 +02:00
1 parent 96ca819770
commit 16ac4b0067
5 files changed
+6 -4

No files matched your search

+2
View File
@@ -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