diff --git a/addons/linkify/index.html b/addons/linkify/index.html new file mode 100644 index 0000000..5f42932 --- /dev/null +++ b/addons/linkify/index.html @@ -0,0 +1,36 @@ + + +
+ + + + + + + + + + + \ No newline at end of file diff --git a/addons/linkify/linkify.js b/addons/linkify/linkify.js index 022f89a..4bc173c 100644 --- a/addons/linkify/linkify.js +++ b/addons/linkify/linkify.js @@ -1,4 +1,15 @@ (function (linkify) { + if (typeof define == 'function') { + /* + * Require.js is available + */ + define(['../../src/xterm'], linkify); + } else { + /* + * Plain browser environment + */ + linkify(this.Xterm); + } })(function (Xterm) { Xterm.prototype.linkify = function () { var rows = this.rowContainer.children,