Skip to content

Commit 7ef5187

Browse files
committed
Merge pull request eligrey#208 from evilaliv3/issue/207
Fix issue eligrey#207
2 parents 230de7d + ae7b37a commit 7ef5187

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

FileSaver.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* FileSaver.js
22
* A saveAs() FileSaver implementation.
3-
* 1.1.20151003
3+
* 1.1.20160319
44
*
55
* By Eli Grey, http://eligrey.com
66
* License: MIT
@@ -116,7 +116,7 @@ var saveAs = saveAs || (function(view) {
116116
target_view.location.href = object_url;
117117
} else {
118118
var new_tab = view.open(object_url, "_blank");
119-
if (new_tab == undefined && is_safari) {
119+
if (new_tab === undefined && is_safari) {
120120
//Apple do not allow window.open, see http://bit.ly/1kZffRI
121121
view.location.href = object_url
122122
}
@@ -263,7 +263,7 @@ var saveAs = saveAs || (function(view) {
263263

264264
if (typeof module !== "undefined" && module.exports) {
265265
module.exports.saveAs = saveAs;
266-
} else if ((typeof define !== "undefined" && define !== null) && (define.amd != null)) {
266+
} else if ((typeof define !== "undefined" && define !== null) && (define.amd !== null)) {
267267
define([], function() {
268268
return saveAs;
269269
});

0 commit comments

Comments
 (0)