Bring multiplex up to date
This commit is contained in:
parent
61c229a4f9
commit
580a72c444
9 changed files with 31 additions and 925 deletions
|
@ -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);
|
||||
} );
|
||||
}());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue