From 95c23f64b3436b9be1abe2b974d9ab6419723cf3 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Wed, 15 Aug 2018 15:07:48 +0100 Subject: [PATCH] Update name --- lib/core/modules/coderunner/codeRunner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/modules/coderunner/codeRunner.js b/lib/core/modules/coderunner/codeRunner.js index 080669aa..c34af412 100644 --- a/lib/core/modules/coderunner/codeRunner.js +++ b/lib/core/modules/coderunner/codeRunner.js @@ -37,12 +37,12 @@ class CodeRunner { RunCode.registerVar(varName, code); }); - this.events.setCommandHandler('runcode:eval', (code, cb, saveForConsole = false) => { + this.events.setCommandHandler('runcode:eval', (code, cb, forConsoleOnly = false) => { if (!cb) { cb = function() {}; } let result = RunCode.doEval(code); - if (saveForConsole && self.ipc.isServer()) { + if (forConsoleOnly && self.ipc.isServer()) { self.commands.push({code}); self.ipc.broadcast("runcode:newCommand", {code}); }