Added failsafe

Closes #216
This commit is contained in:
Jimmy Karl Roland Wärting
2016-05-31 09:15:12 +02:00
parent ae387dbbac
commit bc0ba24aaa
+1 -1
View File
@@ -15,7 +15,7 @@
var saveAs = saveAs || (function(view) {
"use strict";
// IE <10 is explicitly unsupported
if (typeof navigator !== "undefined" && /MSIE [1-9]\./.test(navigator.userAgent)) {
if (typeof view === "undefined" || typeof navigator !== "undefined" && /MSIE [1-9]\./.test(navigator.userAgent)) {
return;
}
var