fix(ponyfills): default filename for blob

This commit is contained in:
Konstantinos Tsanakas
2020-07-06 15:23:02 +02:00
parent c0c1af5ee6
commit ca5306cb47
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = function init(global) {
} else if (global.Blob && value instanceof global.Blob) {
// mimic File instance by adding missing properties
value.lastModifiedDate = new Date();
value.name = filename || '';
value.name = fileName !== undefined ? fileName : 'blob';
} else {
value = String(value);
}