diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2020-03-31 13:06:58 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2020-03-31 13:06:58 +0200 |
commit | dbbd82579e8ecd3b3f583cb6963120aa7da7d0b2 (patch) | |
tree | 2e41a8e2702f7d558999e80c3b12b9008b5cc179 /js/index.js | |
parent | fe75be1cffa2047309358f7d2e05fe9eee96dd96 (diff) | |
download | fosdem-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.js | 12 |
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 |