adjustments to reveal.js initialization flow

This commit is contained in:
Hakim El Hattab
2020-03-10 18:37:37 +01:00
parent 9336fc11ca
commit ddbe06eb7e
4 changed files with 30 additions and 25 deletions

View File

@@ -153,7 +153,7 @@ export default function( revealElement, options ) {
// Load plugins then move on to #start()
plugins.load( config.dependencies ).then( start )
return Reveal;
return new Promise( resolve => Reveal.addEventListener( 'ready', resolve ) );
}