aboutsummaryrefslogtreecommitdiff
path: root/plugin/notes-server/index.js
diff options
context:
space:
mode:
authorGreg Denehy <greg@inclose.com.au>2017-04-30 17:42:16 +0930
committerGreg Denehy <greg@inclose.com.au>2017-04-30 17:42:16 +0930
commitf8bc6791827b7a291081a32ef3d86f5e23d186e7 (patch)
tree87b004b3f1b0575757de6c42bace8f5330926ae0 /plugin/notes-server/index.js
parent40a46e1c0c7836bdc26d25993a5c785be82e9973 (diff)
parent360bc940062711db9b8020ce4e848f6c37014481 (diff)
downloadperl-software-in-gnu-guix-f8bc6791827b7a291081a32ef3d86f5e23d186e7.tar
perl-software-in-gnu-guix-f8bc6791827b7a291081a32ef3d86f5e23d186e7.tar.gz
Merge branch 'dev' into plugin-key-bindings
Diffstat (limited to 'plugin/notes-server/index.js')
-rw-r--r--plugin/notes-server/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/notes-server/index.js b/plugin/notes-server/index.js
index 683f064..b95f071 100644
--- a/plugin/notes-server/index.js
+++ b/plugin/notes-server/index.js
@@ -2,7 +2,6 @@ var http = require('http');
var express = require('express');
var fs = require('fs');
var io = require('socket.io');
-var _ = require('underscore');
var Mustache = require('mustache');
var app = express();
@@ -23,10 +22,12 @@ io.on( 'connection', function( socket ) {
});
socket.on( 'statechanged', function( data ) {
+ delete data.state.overview;
socket.broadcast.emit( 'statechanged', data );
});
socket.on( 'statechanged-speaker', function( data ) {
+ delete data.state.overview;
socket.broadcast.emit( 'statechanged-speaker', data );
});
@@ -64,5 +65,5 @@ var slidesLocation = 'http://localhost' + ( opts.port ? ( ':' + opts.port ) : ''
console.log( brown + 'reveal.js - Speaker Notes' + reset );
console.log( '1. Open the slides at ' + green + slidesLocation + reset );
-console.log( '2. Click on the link your JS console to go to the notes page' );
+console.log( '2. Click on the link in your JS console to go to the notes page' );
console.log( '3. Advance through your slides and your notes will advance automatically' );