Skip to content

Commit 565e2f8

Browse files
committed
Merge pull request eligrey#122 from blakeembrey/master
More hardy node environment check
2 parents 11751a6 + bc962b7 commit 565e2f8

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

FileSaver.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* FileSaver.js
22
* A saveAs() FileSaver implementation.
3-
* 2014-11-29
3+
* 2014-12-17
44
*
55
* By Eli Grey, http://eligrey.com
66
* License: X11/MIT
@@ -235,7 +235,7 @@ var saveAs = saveAs
235235
// while `this` is nsIContentFrameMessageManager
236236
// with an attribute `content` that corresponds to the window
237237

238-
if (typeof module !== "undefined" && module !== null) {
238+
if (typeof module !== "undefined" && module.exports) {
239239
module.exports = saveAs;
240240
} else if ((typeof define !== "undefined" && define !== null) && (define.amd != null)) {
241241
define([], function() {

FileSaver.min.js

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)