diff --git a/dmx-web.js b/dmx-web.js index ad029e9..473bd30 100755 --- a/dmx-web.js +++ b/dmx-web.js @@ -113,7 +113,7 @@ function DMXWeb() { socket.on('request_refresh', function() { for(var universe in config.universes) { - socket.emit('update', universe, dmx.universeAsObject(req.params.universe)) + socket.emit('update', universe, dmx.universeToObject(universe)) } }) diff --git a/dmx.js b/dmx.js index 921e17e..4eac6d9 100644 --- a/dmx.js +++ b/dmx.js @@ -40,7 +40,7 @@ DMX.prototype.updateAll = function(universe, value) { } DMX.prototype.universeToObject = function(universe) { - var universe = this.universes[req.params.universe] + var universe = this.universes[universe] var u = {} for(var i = 0; i < universe.length; i++) { u[i] = universe.get(i)