add Reveal.getConfig(), replace use of window.globals (#98)

This commit is contained in:
Hakim El Hattab
2013-03-08 19:05:58 -05:00
parent 2bd5e8b65b
commit 825fe51de9
5 changed files with 15 additions and 14 deletions

View File

@ -1,5 +1,5 @@
(function() {
var multiplex = window.globals.multiplex;
var multiplex = Reveal.getConfig().multiplex;
var socketId = multiplex.id;
var socket = io.connect(multiplex.url);

View File

@ -1,7 +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 multiplex = Reveal.getConfig().multiplex;
var socket = io.connect(multiplex.url);