Update www/ponyfills.js

Co-authored-by: Sefa Ilkimen <silkimen@users.noreply.github.com>
This commit is contained in:
Konstantinos Tsanakas
2020-07-07 11:03:36 +02:00
committed by GitHub
parent ca5306cb47
commit 7b4d37acd9

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 !== undefined ? fileName : 'blob';
value.name = filename !== undefined ? filename : 'blob';
} else {
value = String(value);
}
@@ -44,4 +44,4 @@ module.exports = function init(global) {
}
return interface;
};
};