Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Use module.exports to check for Node, not process.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Palazzolo authored and jsoma committed Feb 6, 2014
1 parent d98d79a commit fe8d50d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tabletop.js
Expand Up @@ -2,7 +2,7 @@
"use strict";

var inNodeJS = false;
if (typeof process !== 'undefined') {
if (typeof module !== 'undefined' && module.exports) {
inNodeJS = true;
var request = require('request');
}
Expand Down

0 comments on commit fe8d50d

Please sign in to comment.