diff options
author | Hakim El Hattab | 2015-11-09 16:23:57 +0100 |
---|---|---|
committer | Hakim El Hattab | 2015-11-09 16:24:09 +0100 |
commit | 215617740d15f46022dce479f3f412b4d62f44f8 (patch) | |
tree | 874cca999751423e64496f6c8343ac79b4337e5d /plugin/notes-server/client.js | |
parent | 4be55f860eb7fafa5c08c781e52660794ea2e9b3 (diff) |
server notes sync slide changes both ways, fixes #1425
Diffstat (limited to 'plugin/notes-server/client.js')
-rw-r--r-- | plugin/notes-server/client.js | 5 |
1 files changed, 5 insertions, 0 deletions
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 ); |