Add mscript to renderer

This commit is contained in:
Matt 2016-04-18 00:19:23 -04:00
parent f17c00dea7
commit 1a47bf6387
2 changed files with 4 additions and 1 deletions

View File

@ -108,5 +108,6 @@
</div>
</div>
<script src="./js/app.js"></script>
<script src="./lib/mscript.js"></script>
</body>
</html>

View File

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