Merge pull request #856 from Tyriar/fix_vscode_debugging

Fix vscode debugging
This commit is contained in:
Daniel Imms
2017-08-07 01:21:41 -07:00
committed by GitHub
+2 -2
View File
@@ -11,7 +11,7 @@ declare var require: any;
declare var window: any;
(function (addon) {
if ('Terminal' in window) {
if (typeof window !== 'undefined' && 'Terminal' in window) {
/**
* Plain browser environment
*/
@@ -21,7 +21,7 @@ declare var window: any;
* CommonJS environment
*/
module.exports = addon(require('../../xterm'));
} else if (typeof define == 'function') {
} else if (typeof define === 'function') {
/**
* Require.js is available
*/