Add mscript to renderer
This commit is contained in:
parent
f17c00dea7
commit
1a47bf6387
|
@ -108,5 +108,6 @@
|
|||
</div>
|
||||
</div>
|
||||
<script src="./js/app.js"></script>
|
||||
<script src="./lib/mscript.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue