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/notes.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugin/notes-server/notes.html') diff --git a/plugin/notes-server/notes.html b/plugin/notes-server/notes.html index d924ad9..ad8c719 100644 --- a/plugin/notes-server/notes.html +++ b/plugin/notes-server/notes.html @@ -221,6 +221,13 @@ } } + // Messages sent by reveal.js inside of the current slide preview + if( data && data.namespace === 'reveal' ) { + if( /slidechanged|fragmentshown|fragmenthidden|overviewshown|overviewhidden|paused|resumed/.test( data.eventName ) && currentState !== JSON.stringify( data.state ) ) { + socket.emit( 'statechanged-speaker', { state: data.state } ); + } + } + } ); /** -- cgit v1.2.3