Fix issue #207
This commit is contained in:
+2
-2
@@ -116,7 +116,7 @@ var saveAs = saveAs || (function(view) {
|
|||||||
target_view.location.href = object_url;
|
target_view.location.href = object_url;
|
||||||
} else {
|
} else {
|
||||||
var new_tab = view.open(object_url, "_blank");
|
var new_tab = view.open(object_url, "_blank");
|
||||||
if (new_tab == undefined && is_safari) {
|
if (new_tab === undefined && is_safari) {
|
||||||
//Apple do not allow window.open, see http://bit.ly/1kZffRI
|
//Apple do not allow window.open, see http://bit.ly/1kZffRI
|
||||||
view.location.href = object_url
|
view.location.href = object_url
|
||||||
}
|
}
|
||||||
@@ -263,7 +263,7 @@ var saveAs = saveAs || (function(view) {
|
|||||||
|
|
||||||
if (typeof module !== "undefined" && module.exports) {
|
if (typeof module !== "undefined" && module.exports) {
|
||||||
module.exports.saveAs = saveAs;
|
module.exports.saveAs = saveAs;
|
||||||
} else if ((typeof define !== "undefined" && define !== null) && (define.amd != null)) {
|
} else if ((typeof define !== "undefined" && define !== null) && (define.amd !== null)) {
|
||||||
define([], function() {
|
define([], function() {
|
||||||
return saveAs;
|
return saveAs;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user