From: David Banham Date: Sun, 10 Mar 2013 22:15:11 +0000 (+1100) Subject: Error check to prevent exception from Cipher X-Git-Tag: 2.4.0~70^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ccaadaad45348cda17da6c11adf301ed3b22ca25;p=reveal.js.git Error check to prevent exception from Cipher --- diff --git a/plugin/multiplex/index.js b/plugin/multiplex/index.js index 0b03fc7..35df8e3 100644 --- a/plugin/multiplex/index.js +++ b/plugin/multiplex/index.js @@ -15,6 +15,7 @@ var opts = { io.sockets.on('connection', function(socket) { socket.on('slidechanged', function(slideData) { + if (typeof slideData.secret == 'undefined' || slideData.secret == null || slideData.secret === '') return; if (createHash(slideData.secret) === slideData.socketId) { slideData.secret = null; socket.broadcast.emit(slideData.socketId, slideData);