diff options
Diffstat (limited to 'mocha_test/support/is_browser.js')
-rw-r--r-- | mocha_test/support/is_browser.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mocha_test/support/is_browser.js b/mocha_test/support/is_browser.js new file mode 100644 index 0000000..7c765e2 --- /dev/null +++ b/mocha_test/support/is_browser.js @@ -0,0 +1,4 @@ +module.exports = function() { + return (typeof process === "undefined") || + (process + "" !== "[object process]"); // browserify +} |