From a7728f3c2fc24dd3e69831441a685989d0fd9fa7 Mon Sep 17 00:00:00 2001 From: Ryan Blenis Date: Wed, 9 Oct 2019 04:54:37 -0400 Subject: [PATCH] Debug code cleanup --- agents/meshcore.min.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/agents/meshcore.min.js b/agents/meshcore.min.js index 1bbd93e5..24bb6915 100644 --- a/agents/meshcore.min.js +++ b/agents/meshcore.min.js @@ -1497,22 +1497,12 @@ function createMeshCore(agent) if (cmd == null) { return; } if ((cmd.ctrlChannel == '102938') || ((cmd.type == 'offer') && (cmd.sdp != null))) { onTunnelControlData(cmd, this); return; } // If this is control data, handle it now. if (cmd.action == undefined) { return; } - //sendConsoleText('CMD: ' + JSON.stringify(cmd)); - if ((cmd.path != null) && (process.platform != 'win32') && (cmd.path[0] != '/')) { cmd.path = '/' + cmd.path; } // Add '/' to paths on non-windows - //console.log(objToString(cmd, 0, ' ')); - switch (cmd.action) { case 'plugin': { try { require(cmd.plugin).consoleaction(cmd, null, null, this); - } catch (e) { - /*var fs = require('fs'); - var logStream = fs.createWriteStream('log.txt', {'flags': 'a'}); - logStream.write('\nCouldnt load plugin '+e+e.stack); - logStream.end('\n')*/ - throw e; - } + } catch (e) { throw e; } break; }