aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugin/multiplex
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/multiplex')
-rw-r--r--plugin/multiplex/index.js16
-rw-r--r--plugin/multiplex/master.js5
2 files changed, 10 insertions, 11 deletions
diff --git a/plugin/multiplex/index.js b/plugin/multiplex/index.js
index aa8a55a..bf22cb1 100644
--- a/plugin/multiplex/index.js
+++ b/plugin/multiplex/index.js
@@ -1,16 +1,16 @@
-var express = require('express');
-var fs = require('fs');
-var io = require('socket.io');
+var express = require('express');
+var fs = require('fs');
+var io = require('socket.io');
var crypto = require('crypto');
-var app = express.createServer();
-var staticDir = express.static;
+var app = express.createServer();
+var staticDir = express.static;
-io = io.listen(app);
+io = io.listen(app);
var opts = {
- port : 1948,
- baseDir : __dirname + '/../../'
+ port: 1948,
+ baseDir : __dirname + '/../../'
};
io.sockets.on('connection', function(socket) {
diff --git a/plugin/multiplex/master.js b/plugin/multiplex/master.js
index a896244..5c18390 100644
--- a/plugin/multiplex/master.js
+++ b/plugin/multiplex/master.js
@@ -4,7 +4,7 @@
var multiplex = window.globals.multiplex;
var socket = io.connect(multiplex.url);
-
+
Reveal.addEventListener( 'slidechanged', function( event ) {
var nextindexh;
var nextindexv;
@@ -18,7 +18,6 @@
nextindexv = 0;
}
- var notes = slideElement.querySelector('aside.notes');
var slideData = {
indexh : event.indexh,
indexv : event.indexv,
@@ -28,6 +27,6 @@
socketId : multiplex.id
};
- if( typeof event.origin === 'undefined' && event.origin !== 'remote') socket.emit('slidechanged', slideData);
+ if( typeof event.origin === 'undefined' && event.origin !== 'remote' ) socket.emit('slidechanged', slideData);
} );
}());