diff --git a/xstatic/pkg/filesaver/data/FileSaver.js b/xstatic/pkg/filesaver/data/FileSaver.js index 315dc02..239db12 100644 --- a/xstatic/pkg/filesaver/data/FileSaver.js +++ b/xstatic/pkg/filesaver/data/FileSaver.js @@ -31,7 +31,7 @@ var saveAs = saveAs || (function(view) { var event = new MouseEvent("click"); node.dispatchEvent(event); } - , is_safari = /constructor/i.test(view.HTMLElement) || view.safari + , is_safari = /constructor/i.test(view.HTMLElement) , is_chrome_ios =/CriOS\/[\d]+/.test(navigator.userAgent) , throw_outside = function(ex) { (view.setImmediate || view.setTimeout)(function() { @@ -182,7 +182,7 @@ var saveAs = saveAs || (function(view) { if (typeof module !== "undefined" && module.exports) { module.exports.saveAs = saveAs; } else if ((typeof define !== "undefined" && define !== null) && (define.amd !== null)) { - define("FileSaver.js", function() { + define([], function() { return saveAs; }); -} \ No newline at end of file +}