From cc21769a06a04cb23711f5dfdd82ad27ee07efa3 Mon Sep 17 00:00:00 2001 From: Blake Embrey Date: Wed, 17 Dec 2014 18:29:45 -0800 Subject: [PATCH] More hardy node environment check --- src/showdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/showdown.js b/src/showdown.js index b488bad..6383b38 100644 --- a/src/showdown.js +++ b/src/showdown.js @@ -1442,7 +1442,7 @@ var escapeCharacters_callback = function(wholeMatch,m1) { // export -if (typeof module !== 'undefined') module.exports = Showdown; +if (typeof module !== 'undefined' && module.exports) module.exports = Showdown; // stolen from AMD branch of underscore // AMD define happens at the end for compatibility with AMD loaders