From 1a47bf638757a2594e28ae2ccf39c8ec5cb81ae2 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 18 Apr 2016 00:19:23 -0400 Subject: [PATCH] Add mscript to renderer --- app/index.html | 1 + app/lib/mscript.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/index.html b/app/index.html index 2e9a3de..a4e3055 100644 --- a/app/index.html +++ b/app/index.html @@ -108,5 +108,6 @@ + \ No newline at end of file diff --git a/app/lib/mscript.js b/app/lib/mscript.js index 1c8bca9..13166c7 100644 --- a/app/lib/mscript.js +++ b/app/lib/mscript.js @@ -382,7 +382,9 @@ mscript.tests = function tests () { console.timeEnd('Tests took'); }; -if (typeof module !== 'undefined' && !module.parent) { +if (typeof document === 'undefined' + && typeof module !== 'undefined' + && !module.parent) { //node script fs = require('fs'); input = process.argv[2];