From ca5306cb477d7cfa014b1083ee9ae025c99deab8 Mon Sep 17 00:00:00 2001 From: Konstantinos Tsanakas Date: Mon, 6 Jul 2020 15:23:02 +0200 Subject: [PATCH] fix(ponyfills): default filename for blob --- www/ponyfills.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/ponyfills.js b/www/ponyfills.js index e49e6d7..3b509a3 100644 --- a/www/ponyfills.js +++ b/www/ponyfills.js @@ -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); }