Skip to content

Commit

Permalink
dont send circular structure via socket.io (fix #26)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Mar 14, 2019
1 parent c1de596 commit b0a2e95
Show file tree
Hide file tree
Showing 3 changed files with 1,347 additions and 1,191 deletions.
15 changes: 14 additions & 1 deletion backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,20 @@ function init(RED) {
id = id.replace(/^\?\/?/, '').replace(/\/$/, '');
log.info('RedMatic-WebApp getConfig "' + id + '" from ' + address);
cb({
config: config[id],
config: {
name: config[id].name,
title: config[id].title,
theme: config[id].theme,
replaceChannelNames: config[id].replaceChannelNames,
showHome: config[id].showHome,
showRooms: config[id].showRooms,
showFunctions: config[id].showFunctions,
showSysvar: config[id].showSysvar,
showProgram: config[id].showProgram,
showSystem: config[id].showSystem,
rooms: config[id].rooms,
functions: config[id].functions
},
data: conn.getData && conn.getData()
});
});
Expand Down
Loading

0 comments on commit b0a2e95

Please sign in to comment.