From 1cb52120ff0177e3908f384dc55f0b1d92d2a3c7 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 26 Oct 2015 08:47:37 +0100 Subject: [PATCH] syntax error in postmessage example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a582549..1d5f710 100644 --- a/README.md +++ b/README.md @@ -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 } } );