Skip to content
Snippets Groups Projects
Commit 1cb52120 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

syntax error in postmessage example

parent 34b82baa
No related branches found
No related tags found
No related merge requests found
......@@ -682,7 +682,7 @@ When reveal.js runs inside of an iframe it can optionally bubble all of its even
```javascript
window.addEventListener( 'message', function( event ) {
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
}
} );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment