diff --git a/src/showdown.js b/src/showdown.js index 18b8268..94e2cfa 100644 --- a/src/showdown.js +++ b/src/showdown.js @@ -3,7 +3,7 @@ */ // load dependencies -if (typeof document === 'undefined' && typeof window === 'undefined') { +if (typeof this.document === 'undefined' && typeof this.window === 'undefined') { var jsdom = require('jsdom').jsdom, jsdomObj = jsdom('', {}), window = jsdomObj.defaultView, // jshint ignore:line