From dd4246c095c5b811392c357557a1b5890a2748f3 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 21 Feb 2018 23:07:07 +0200 Subject: [PATCH] Fix ReferenceError: module is not defined --- js/OAuthSimple.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/OAuthSimple.js b/js/OAuthSimple.js index d91ac00..d0b850b 100644 --- a/js/OAuthSimple.js +++ b/js/OAuthSimple.js @@ -490,6 +490,6 @@ if (OAuthSimple === undefined) // CommonJS Support -if (module && exports) { +if (typeof exports === 'object' && typeof module !== 'undefined') { module.exports = OAuthSimple; }