Skip to content

Commit

Permalink
Fixes #387
Browse files Browse the repository at this point in the history
  • Loading branch information
eligrey committed Jan 12, 2018
1 parent 74f0898 commit 5733e40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions FileSaver.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,18 +173,13 @@ var saveAs = saveAs || (function(view) {
}(
typeof self !== "undefined" && self
|| typeof window !== "undefined" && window
|| typeof global !== "undefined" && global
|| this.content
|| this
));
// `self` is undefined in Firefox for Android content script context
// while `this` is nsIContentFrameMessageManager
// with an attribute `content` that corresponds to the window

if (typeof module !== "undefined" && module.exports) {
module.exports.saveAs = saveAs;
module.exports.saveAs = saveAs;
} else if ((typeof define !== "undefined" && define !== null) && (define.amd !== null)) {
define("FileSaver.js", function() {
return saveAs;
});
define("FileSaver.js", function() {
return saveAs;
});
}
2 changes: 1 addition & 1 deletion FileSaver.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5733e40

Please sign in to comment.