mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-05-31 00:00:07 +08:00
fix(ponyfills): default filename for blob
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user