Merge pull request #49 from noseglid/nodejs-module

nodejs module definition
This commit is contained in:
Paris Kasidiaris
2016-04-12 14:18:03 +03:00
+6 -1
View File
@@ -32,7 +32,12 @@
*/
(function (xterm) {
if (typeof define == 'function') {
if (typeof exports === 'object' && typeof module === 'object') {
/*
* npm/nodejs project
*/
module.exports = xterm.call(this);
} else if (typeof define == 'function') {
/*
* Require.js is available
*/