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];