This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/cordova-plugin-media-capture.git
The following commit(s) were added to refs/heads/master by this push:
new 306eb8b fix(MediaFiles): return missing 'lastModified' and 'end'
attributes (#195)
306eb8b is described below
commit 306eb8b0cf7e190e1ce3305d79cac8e2e70e6c38
Author: Alexis THOMAS <[email protected]>
AuthorDate: Mon Jul 31 18:50:44 2023 +0200
fix(MediaFiles): return missing 'lastModified' and 'end' attributes (#195)
---
www/helpers.js | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/www/helpers.js b/www/helpers.js
index 17f500a..0eb28ea 100644
--- a/www/helpers.js
+++ b/www/helpers.js
@@ -25,15 +25,15 @@ function wrapMediaFiles (pluginResult) {
const mediaFiles = [];
let i;
for (i = 0; i < pluginResult.length; i++) {
- const mediaFile = new MediaFile();
- mediaFile.name = pluginResult[i].name;
-
- // Backwards compatibility
- mediaFile.localURL = pluginResult[i].localURL ||
pluginResult[i].fullPath;
+ const mediaFile = new MediaFile(
+ pluginResult[i].name,
+ // Backwards compatibility
+ pluginResult[i].localURL || pluginResult[i].fullPath,
+ pluginResult[i].type,
+ pluginResult[i].lastModifiedDate,
+ pluginResult[i].size
+ );
mediaFile.fullPath = pluginResult[i].fullPath;
- mediaFile.type = pluginResult[i].type;
- mediaFile.lastModifiedDate = pluginResult[i].lastModifiedDate;
- mediaFile.size = pluginResult[i].size;
mediaFiles.push(mediaFile);
}
return mediaFiles;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]