Add check for window.saveAs

This commit is contained in:
Alexey
2018-01-14 08:43:44 +00:00
parent 164deec5ab
commit b6c236d96d
+1 -1
View File
@@ -13,7 +13,7 @@
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
export var saveAs = (function(view) {
export var saveAs = 'saveAs' in window ? window.saveAs : (function(view) {
"use strict";
// IE <10 is explicitly unsupported
if (typeof view === "undefined" || typeof navigator !== "undefined" && /MSIE [1-9]\./.test(navigator.userAgent)) {