Improved case switching for node/browsers
This commit is contained in:
parent
962fe68632
commit
b9e75c983d
|
@ -361,20 +361,20 @@ mscript.tests = function tests () {
|
||||||
console.timeEnd('Tests took');
|
console.timeEnd('Tests took');
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!module.parent) {
|
if (typeof module !== 'undefined' && !module.parent) {
|
||||||
if (typeof process !== 'undefined') {
|
//node script
|
||||||
fs = require('fs');
|
fs = require('fs');
|
||||||
input = process.argv[2];
|
input = process.argv[2];
|
||||||
mscript.init();
|
mscript.init();
|
||||||
} else {
|
} else if (typeof module !== 'undefined' && module.parent) {
|
||||||
//web
|
//module
|
||||||
}
|
|
||||||
} else {
|
|
||||||
console.log('module here');
|
|
||||||
fs = require('fs');
|
fs = require('fs');
|
||||||
module.exports = mscript;
|
module.exports = mscript;
|
||||||
|
} else {
|
||||||
|
//web
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
CAM # - go to camera frame #
|
CAM # - go to camera frame #
|
||||||
|
|
Loading…
Reference in New Issue