From a731af486d8198de4f58af68965d69235275f0bf Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Sat, 23 Mar 2013 15:31:31 -0400 Subject: [PATCH] Req sha --- ohauth.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ohauth.js b/ohauth.js index a6e3d2b..c7cde9d 100644 --- a/ohauth.js +++ b/ohauth.js @@ -1,6 +1,8 @@ (function(context) { -var sha1 = sha1 || require && require('./sha'); +if (typeof module !== 'undefined') { + var sha1 = require('./sha'); +} var ohauth = {};