From 215617740d15f46022dce479f3f412b4d62f44f8 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 9 Nov 2015 16:23:57 +0100 Subject: server notes sync slide changes both ways, fixes #1425 --- plugin/notes-server/client.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugin/notes-server/client.js') diff --git a/plugin/notes-server/client.js b/plugin/notes-server/client.js index 719b495..00b277b 100644 --- a/plugin/notes-server/client.js +++ b/plugin/notes-server/client.js @@ -45,6 +45,11 @@ post(); } ); + // When the state changes from inside of the speaker view + socket.on( 'statechanged-speaker', function( data ) { + Reveal.setState( data.state ); + } ); + // Monitor events that trigger a change in state Reveal.addEventListener( 'slidechanged', post ); Reveal.addEventListener( 'fragmentshown', post ); -- cgit v1.2.3