mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #49 from noseglid/nodejs-module
nodejs module definition
This commit is contained in:
+6
-1
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user