summaryrefslogtreecommitdiffhomepage
path: root/plugin/multiplex/master.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/multiplex/master.js')
-rw-r--r--plugin/multiplex/master.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/multiplex/master.js b/plugin/multiplex/master.js
index 3704fa4..a896244 100644
--- a/plugin/multiplex/master.js
+++ b/plugin/multiplex/master.js
@@ -1,6 +1,7 @@
(function() {
// don't emit events from inside the previews themselves
if ( window.location.search.match( /receiver/gi ) ) { return; }
+ var multiplex = window.globals.multiplex;
var socket = io.connect(multiplex.url);
@@ -27,6 +28,6 @@
socketId : multiplex.id
};
- if( event.origin !== 'remote') socket.emit('slidechanged', slideData);
+ if( typeof event.origin === 'undefined' && event.origin !== 'remote') socket.emit('slidechanged', slideData);
} );
}());