More hardy node environment check

This commit is contained in:
Blake Embrey
2014-12-17 18:28:09 -08:00
parent 11751a6a65
commit 74d38bafd1
+1 -1
View File
@@ -235,7 +235,7 @@ var saveAs = saveAs
// while `this` is nsIContentFrameMessageManager
// with an attribute `content` that corresponds to the window
if (typeof module !== "undefined" && module !== null) {
if (typeof module !== "undefined" && module.exports) {
module.exports = saveAs;
} else if ((typeof define !== "undefined" && define !== null) && (define.amd != null)) {
define([], function() {