Add mscript to renderer
This commit is contained in:
parent
f17c00dea7
commit
1a47bf6387
app
|
@ -108,5 +108,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="./js/app.js"></script>
|
<script src="./js/app.js"></script>
|
||||||
|
<script src="./lib/mscript.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -382,7 +382,9 @@ mscript.tests = function tests () {
|
||||||
console.timeEnd('Tests took');
|
console.timeEnd('Tests took');
|
||||||
};
|
};
|
||||||
|
|
||||||
if (typeof module !== 'undefined' && !module.parent) {
|
if (typeof document === 'undefined'
|
||||||
|
&& typeof module !== 'undefined'
|
||||||
|
&& !module.parent) {
|
||||||
//node script
|
//node script
|
||||||
fs = require('fs');
|
fs = require('fs');
|
||||||
input = process.argv[2];
|
input = process.argv[2];
|
||||||
|
|
Loading…
Reference in New Issue