From 7e2ebdb85dc556deee9f2d8ae09acd17e6480c6b Mon Sep 17 00:00:00 2001 From: Scott Jehl Date: Tue, 3 Nov 2015 15:33:54 -0600 Subject: [PATCH] Expose loadJS on window, even when require'd via CommonJS and wrapped with Browserify --- loadJS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loadJS.js b/loadJS.js index 2080384..ab97901 100644 --- a/loadJS.js +++ b/loadJS.js @@ -16,4 +16,4 @@ if( typeof module !== "undefined" ){ module.exports = w.loadJS; } -}( this )); +}( typeof global !== "undefined" ? global : this ));