aboutsummaryrefslogtreecommitdiff
path: root/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/index.js')
-rw-r--r--js/index.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/js/index.js b/js/index.js
index 51b0143..05beb20 100644
--- a/js/index.js
+++ b/js/index.js
@@ -1,16 +1,14 @@
import Presentation from './reveal.js'
+window.Reveal = Presentation;
+
// Provides a backwards compatible way to initialize
// reveal.js when there is only one presentation on
// the page.
//
// Reveal.initialize({ controls: false })
// Reveal.slide(2)
-window.Reveal = {
-
- initialize: options => {
- window.Reveal = new Presentation( document.querySelector( '.reveal' ), options );
- return window.Reveal.initialize();
- }
-
+window.Reveal.initialize = options => {
+ window.Reveal = new Presentation( document.querySelector( '.reveal' ), options );
+ return window.Reveal.initialize();
} \ No newline at end of file