From 9a1ee28ec305ec7811b5c6d350cb0b2156048812 Mon Sep 17 00:00:00 2001 From: Max Stockner Date: Sat, 12 Nov 2016 20:21:30 +0100 Subject: [PATCH] further fixes for issues introduced by d16472193895e6190465a2f66c0a33f9cfe3fb6e --- dmx-web.js | 2 +- dmx.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)