modified to use events, hopefully will fix the crashing particle

This commit is contained in:
Martin Donnelly 2016-02-12 15:51:12 +00:00
parent 64aeff1485
commit b393903814

View File

@ -126,6 +126,7 @@ router.post('/', function (req, res, next) {
var dataJSON={};
console.log('~~~~');
logger.debug(t);
t = JSON.parse(t);
if(t.hasOwnProperty(data)){
var data = t.data;
dataJSON = JSON.parse(data);