aboutsummaryrefslogtreecommitdiff
path: root/js/index.js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2020-03-31 13:06:58 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2020-03-31 13:06:58 +0200
commitdbbd82579e8ecd3b3f583cb6963120aa7da7d0b2 (patch)
tree2e41a8e2702f7d558999e80c3b12b9008b5cc179 /js/index.js
parentfe75be1cffa2047309358f7d2e05fe9eee96dd96 (diff)
downloadfosdem-2021-minimalism-presentation-dbbd82579e8ecd3b3f583cb6963120aa7da7d0b2.tar
fosdem-2021-minimalism-presentation-dbbd82579e8ecd3b3f583cb6963120aa7da7d0b2.tar.gz
fix unit tests, use qunit-puppeteer for es6 support
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