From 482393d834af18b7a8412356dc6dd29253155cfc Mon Sep 17 00:00:00 2001 From: AlejoNext Date: Sun, 16 Nov 2014 00:04:09 -0500 Subject: [PATCH] Change the test to node If you export the module enters browserify if, however if used process is a global variable node. --- src/showdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/showdown.js b/src/showdown.js index b488bad..0901b08 100644 --- a/src/showdown.js +++ b/src/showdown.js @@ -117,7 +117,7 @@ var g_output_modifiers = []; // Automatic Extension Loading (node only): // -if (typeof module !== 'undefind' && typeof exports !== 'undefined' && typeof require !== 'undefind') { +if (typeof process !== 'undefined') { var fs = require('fs'); if (fs) {