Skip to content

Commit 16ac4b0

Browse files
committed
prevent double-initialization #3696
1 parent 96ca819 commit 16ac4b0

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

dist/reveal.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/reveal.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/reveal.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/reveal.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/reveal.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ export default function( revealElement, options ) {
130130

131131
if( !revealElement ) throw 'Unable to find presentation root (<div class="reveal">).';
132132

133+
if( initialized ) throw 'Reveal.js has already been initialized.';
134+
133135
initialized = true;
134136

135137
// Cache references to key DOM elements

0 commit comments

Comments
 (0)