syntax error in postmessage example

This commit is contained in:
Hakim El Hattab 2015-10-26 08:47:37 +01:00
parent 34b82baa67
commit 1cb52120ff

View File

@ -682,7 +682,7 @@ When reveal.js runs inside of an iframe it can optionally bubble all of its even
```javascript ```javascript
window.addEventListener( 'message', function( event ) { window.addEventListener( 'message', function( event ) {
var data = JSON.parse( event.data ); var data = JSON.parse( event.data );
if( data.namespace === 'reveal' && data.eventName ='slidechanged' ) { if( data.namespace === 'reveal' && data.eventName ==='slidechanged' ) {
// Slide changed, see data.state for slide number // Slide changed, see data.state for slide number
} }
} ); } );