Fix accidental rewrite of global saveAs function

The change is just to put parentheses around the code after `var saveAs = _global.saveAs ||`
and then indent it properly.

closes #498
This commit is contained in:
segovia
2018-12-29 11:01:25 +01:00
committed by Jimmy Wärting
parent be09a02e8c
commit 283f438c31
4 changed files with 93 additions and 92 deletions
+2 -2
View File
@@ -81,7 +81,7 @@
}
}
var saveAs = _global.saveAs || // probably in some web worker
var saveAs = _global.saveAs || ( // probably in some web worker
typeof window !== 'object' || window !== _global ? function saveAs() {}
/* noop */
// Use download attribute first if possible (#193 Lumia mobile)
@@ -171,7 +171,7 @@
URL.revokeObjectURL(url);
}, 4E4); // 40s
}
};
});
_global.saveAs = saveAs.saveAs = saveAs;
if (typeof module !== 'undefined') {