summaryrefslogtreecommitdiffhomepage
path: root/plugin/notes-server/notes.html
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/notes-server/notes.html')
-rw-r--r--plugin/notes-server/notes.html7
1 files changed, 7 insertions, 0 deletions
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 } );
+ }
+ }
+
} );
/**