diff --git a/app/js/app.js b/app/js/app.js index 9839dd2..5c5bf9c 100644 --- a/app/js/app.js +++ b/app/js/app.js @@ -2494,7 +2494,7 @@ const cmd = require('./lib/ui/cmd.js'); const log = require('./lib/ui/log.js'); const devices = require('./lib/ui/devices.js'); const mse = require('./lib/ui/mscript.js'); -const mscript = require('./lib/mscript'); +const Mscript = require('./lib/mscript'); diff --git a/app/lib/ui/mscript.js b/app/lib/ui/mscript.js index 8afdad2..63e93b7 100644 --- a/app/lib/ui/mscript.js +++ b/app/lib/ui/mscript.js @@ -100,6 +100,7 @@ mse.mscript.toSequence = function () { mse.mscript.compile = function (cb) { 'use strict'; const data = mse.mscript.editor.getValue(); + let mscript = new Mscript(); let output; mse.mscript.raw = data; mscript.interpret(data, (output) => { diff --git a/app/src/index.js b/app/src/index.js index e92ab1b..0244630 100644 --- a/app/src/index.js +++ b/app/src/index.js @@ -20,7 +20,7 @@ const cmd = require('./lib/ui/cmd.js'); const log = require('./lib/ui/log.js'); const devices = require('./lib/ui/devices.js'); const mse = require('./lib/ui/mscript.js'); -const mscript = require('./lib/mscript'); +const Mscript = require('./lib/mscript');